version bump 0.10.1: fixed deps

This commit is contained in:
SheetJS 2017-07-31 22:28:37 -04:00
parent 80c1a0fec7
commit 71f827c4fa
8 changed files with 11 additions and 11 deletions

View File

@ -4,7 +4,7 @@ REQS=
ADDONS=
AUXTARGETS=
CMDS=bin/ssf.njs
HTMLLINT=
HTMLLINT=index.html
ULIB=$(shell echo $(LIB) | tr a-z A-Z)
DEPS=$(sort $(wildcard bits/*.js))

View File

@ -2,11 +2,11 @@
/* ssf.js (C) 2013-present SheetJS -- http://sheetjs.com */
/* eslint-env node */
/* eslint no-console:0 */
var SSF = require('../');
var X = require('../');
var argv = process.argv.slice(2);
if(argv.length < 2 || argv[0] == "-h" || argv[0] == "--help") {
console.error("usage: ssf <format> <value>");
console.error("output: format_as_string|format_as_number|");
process.exit(0);
}
console.log(SSF.format(argv[0],argv[1]) + "|" + SSF.format(argv[0],+(argv[1])) + "|");
console.log(X.format(argv[0],argv[1]) + "|" + X.format(argv[0],+(argv[1])) + "|");

View File

@ -1 +1 @@
SSF.version = '0.10.0';
SSF.version = '0.10.1';

View File

@ -26,6 +26,7 @@ a { text-decoration: none }
<script src="ssf.js"></script>
<script>
/*jshint browser:true */
/*eslint-env browser */
/*global SSF */
var F = document.getElementById('fmt');
var V = document.getElementById('val');

View File

@ -1,7 +1,7 @@
{
"name": "ssf",
"version": "0.10.0",
"author": "SheetJS",
"version": "0.10.1",
"author": "sheetjs",
"description": "Format data using ECMA-376 spreadsheet Format Codes",
"keywords": [ "format", "sprintf", "spreadsheet" ],
"bin": {
@ -9,8 +9,7 @@
},
"main": "./ssf",
"dependencies": {
"voc":"~1.0.0",
"frac":"~1.0.6"
"frac":"~1.1.0"
},
"devDependencies": {
"mocha":"~2.5.3",

View File

@ -4,7 +4,7 @@
/*:: declare var DO_NOT_EXPORT_SSF: any; */
var SSF/*:SSFModule*/ = ({}/*:any*/);
var make_ssf = function make_ssf(SSF/*:SSFModule*/){
SSF.version = '0.10.0';
SSF.version = '0.10.1';
function _strrev(x/*:string*/)/*:string*/ { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
function fill(c/*:string*/,l/*:number*/)/*:string*/ { var o = ""; while(o.length < l) o+=c; return o; }
function pad0(v/*:any*/,d/*:number*/)/*:string*/{var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}

2
ssf.js
View File

@ -3,7 +3,7 @@
/*jshint -W041 */
var SSF = ({});
var make_ssf = function make_ssf(SSF){
SSF.version = '0.10.0';
SSF.version = '0.10.1';
function _strrev(x) { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
function fill(c,l) { var o = ""; while(o.length < l) o+=c; return o; }
function pad0(v,d){var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}

View File

@ -1,6 +1,6 @@
/* vim: set ts=2: */
/*jshint -W041 */
/*jshint loopfunc:true, mocha:true, node:true */
/*jshint loopfunc:true, mocha:true, node:true, evil:true */
var SSF = require('../');
var fs = require('fs'), assert = require('assert');
var data = JSON.parse(fs.readFileSync('./test/date.json','utf8'));