Comparing version 0.1.1 to 1.0.0
{ | ||
"name": "printj", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"author": "sheetjs", | ||
@@ -14,3 +14,4 @@ "description": "Pure-JS printf", | ||
"devDependencies": { | ||
"mocha":"" | ||
"mocha":"", | ||
"uglify-js":"" | ||
}, | ||
@@ -26,3 +27,4 @@ "repository": { "type":"git", "url":"git://github.com/SheetJS/printj.git" }, | ||
}, | ||
"files": ["printj.js", "bin/printj.njs", "LICENSE", "README.md"], | ||
"homepage": "https://oss.sheetjs.com/printj/", | ||
"files": ["printj.js", "bin/printj.njs", "LICENSE", "README.md", "dist/*.js", "dist/*.map", "dist/LICENSE"], | ||
"bugs": { "url": "https://github.com/SheetJS/printj/issues" }, | ||
@@ -29,0 +31,0 @@ "license": "Apache-2.0", |
@@ -1,2 +0,1 @@ | ||
/* printj.js (C) 2016-present SheetJS -- http://sheetjs.com */ | ||
@@ -27,3 +26,3 @@ /* vim: set ts=2: */ | ||
PRINTJ.version = '0.1.1'; | ||
PRINTJ.version = '1.0.0'; | ||
@@ -160,3 +159,4 @@ function tokenize(fmt) { | ||
if(typeof util=='undefined' && typeof require!=='undefined')util=require("util"); | ||
/*global process:true, util:true, require:true */ | ||
if(typeof process !== 'undefined' && !!process.versions && !!process.versions.node) util=require("util"); | ||
var u_inspect = (typeof util != 'undefined') ? util.inspect : JSON.stringify; | ||
@@ -591,3 +591,2 @@ | ||
//function sprintf() { return doit(tokenize(arguments[0]), Array.prototype.slice.call(arguments, 1)); } | ||
function sprintf() { | ||
@@ -594,0 +593,0 @@ var args = new Array(arguments.length - 1); |
@@ -6,3 +6,3 @@ # printj | ||
```JS | ||
```js | ||
PRINTJ.sprintf("Hello %s!", "World"); | ||
@@ -97,2 +97,4 @@ ``` | ||
[![Build Status](https://saucelabs.com/browser-matrix/printj.svg)](https://saucelabs.com/u/printj) | ||
[![Build Status](https://travis-ci.org/SheetJS/printj.svg?branch=master)](https://travis-ci.org/SheetJS/printj) | ||
@@ -102,2 +104,8 @@ | ||
[![NPM Downloads](https://img.shields.io/npm/dt/printj.svg)](https://npmjs.org/package/printj) | ||
[![Dependencies Status](https://david-dm.org/sheetjs/printj/status.svg)](https://david-dm.org/sheetjs/printj) | ||
[![ghit.me](https://ghit.me/badge.svg?repo=sheetjs/printj)](https://ghit.me/repo/sheetjs/printj) | ||
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/printj?pixel)](https://github.com/SheetJS/printj) | ||
@@ -973,2 +981,17 @@ | ||
## Browser Deviations | ||
Opera does not always include the last significant digit in base 16 rendering. | ||
For example, `(-6.9e-11).toString(16)` is `"0.000000004bddc5fd160168"` in every | ||
other browser but is `"0.000000004bddc5fd16017"` in Opera. The test suite skips | ||
the `%a/%A` precision-less formats in Opera. | ||
`Object.prototype.toString.call` gives unexpected results in older browsers, and | ||
no attempt is made to correct for them. The test suite ignores those cases: | ||
| value | `%#T` expected | `%#T` IE < 9 | `%#T` Android < 4.4 | | ||
|:------------|:---------------|:-------------|:--------------------| | ||
| `null` | `"Null"` | `"Object"` | `"global"` | | ||
| `undefined` | `"Undefined"` | `"Object"` | `"global"` | | ||
## Support Summary | ||
@@ -975,0 +998,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
111719
9
1072
1
1004
2