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

rison-node

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rison-node - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

39

build/rison.js

@@ -121,2 +121,7 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.rison = f()}})(function(){var define,module,exports;

},
enc = function (v) {
if (v && typeof v.toJSON === 'function') v = v.toJSON();
var fn = s[typeof v];
if (fn) return fn(v);
},
s = {

@@ -126,13 +131,9 @@ array: function (x) {

for (i = 0; i < l; i += 1) {
v = x[i];
f = s[typeof v];
if (f) {
v = f(v);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a[a.length] = v;
b = true;
v = enc(x[i]);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a[a.length] = v;
b = true;
}

@@ -172,13 +173,9 @@ }

i = ks[ki];
v = x[i];
f = s[typeof v];
if (f) {
v = f(v);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a.push(s.string(i), ':', v);
b = true;
v = enc(x[i]);
if (typeof v == 'string') {
if (b) {
a[a.length] = ',';
}
a.push(s.string(i), ':', v);
b = true;
}

@@ -219,3 +216,3 @@ }

rison.encode = function (v) {
return s[typeof v](v);
return enc(v);
};

@@ -222,0 +219,0 @@

@@ -0,1 +1,5 @@

# 0.3.0 (2015-12-18)
- Handle Date type values via `.toJSON()`
# 0.2.0 (2015-12-18)

@@ -2,0 +6,0 @@

{
"name": "rison-node",
"version": "0.2.0",
"version": "0.3.0",
"author": "Nanonid (https://github.com/Nanonid)",

@@ -5,0 +5,0 @@ "description": "data serialization format optimized for compactness in URIs",

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