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

transit-immutable-js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transit-immutable-js - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

14

index.js

@@ -37,2 +37,5 @@ var transit = require('transit-js');

return Immutable.Set(v);
},
iOS: function(v) {
return Immutable.OrderedSet(v);
}

@@ -122,2 +125,13 @@ }

}),
Immutable.OrderedSet, transit.makeWriteHandler({
tag: function() {
return "iOS";
},
rep: function(v) {
if (predicate) {
v = v.filter(predicate);
}
return v.toArray();
}
}),
Function, transit.makeWriteHandler({

@@ -124,0 +138,0 @@ tag: function() {

2

package.json
{
"name": "transit-immutable-js",
"version": "0.3.0",
"version": "0.4.0",
"description": "Transit serialisation for Immutable.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,2 +32,4 @@ /* eslint-env mocha */

"OrderedSets": Immutable.OrderedSet.of(1, 4, 3, 3),
"Ordered Maps": Immutable.OrderedMap()

@@ -140,2 +142,11 @@ .set(2, 'a')

it('can ignore OrderedSet entries', function() {
var input = Immutable.Set.of(1, 2, 3, 3, 'a');
filter = transit.withFilter(function(val) {
return typeof val === 'number';
});
var result = filter.fromJSON(filter.toJSON(input));
expect(result.includes('a')).to.eql(false);
});
it('can ignore List entries', function() {

@@ -142,0 +153,0 @@ var input = Immutable.List.of(1, 2, 3, 3, 'a');

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