Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typeson

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeson - npm Package Compare versions

Comparing version 2.1.4 to 3.0.0

dist/typeson.js

7

package.json
{
"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...

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc