Comparing version 2.1.4 to 3.0.0
{ | ||
"name": "typeson", | ||
"version": "2.1.4", | ||
"version": "3.0.0", | ||
"description": "Preserves types over JSON, BSON or socket.io", | ||
@@ -8,3 +8,3 @@ "main": "typeson.js", | ||
"test": "node test.js", | ||
"build": "node_modules/.bin/uglifyjs typeson.js -o typeson.min.js --source-map typeson.min.js.map" | ||
"build": "node_modules/.bin/webpack --optimize-minimize" | ||
}, | ||
@@ -28,5 +28,6 @@ "repository": { | ||
"devDependencies": { | ||
"uglify-js": "^2.6.2" | ||
"uglify-js": "^2.6.2", | ||
"webpack": "^1.13.1" | ||
}, | ||
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson()\n .register(require('typeson-registry/presets/builtin'));\n\nTSON.stringify({foo: /bar/gi});" | ||
} |
@@ -167,3 +167,3 @@ var keys = Object.keys, | ||
*/ | ||
var register = this.register = function (typeSpecSets) { | ||
this.register = function (typeSpecSets) { | ||
[].concat(typeSpecSets).forEach(function R (typeSpec) { | ||
@@ -170,0 +170,0 @@ if (isArray(typeSpec)) return typeSpec.map(R); // Allow arrays of arrays of arrays... |
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
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 README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
32822
7
0
269
2
428