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

cp-data

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cp-data - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

.jshintrc

7

CHANGELOG.md

@@ -0,1 +1,8 @@

v1.1.2
======
* No longer use the 'keys' property to determine if an object is a Set.
Recently both Chrome and Firefox have added 'keys' to Array objects.
See [Issue #1](https://github.com/cpettitt/cp-data/issues/1]).
v1.1.1

@@ -2,0 +9,0 @@ ======

6

lib/Set.js

@@ -38,6 +38,6 @@ module.exports = Set;

var result = new Set(sets[0].keys ? sets[0].keys() : sets[0]);
var result = new Set(!Array.isArray(sets[0]) ? sets[0].keys() : sets[0]);
for (var i = 1, il = sets.length; i < il; ++i) {
var resultKeys = result.keys(),
other = sets[i].keys ? sets[i] : new Set(sets[i]);
other = !Array.isArray(sets[i]) ? sets[i] : new Set(sets[i]);
for (var j = 0, jl = resultKeys.length; j < jl; ++j) {

@@ -66,3 +66,3 @@ var key = resultKeys[j];

var cur = sets[i],
keys = cur.keys ? cur.keys() : cur;
keys = !Array.isArray(cur) ? cur.keys() : cur;
for (var j = 0, jl = keys.length; j < jl; ++j) {

@@ -69,0 +69,0 @@ arr[k++] = keys[j];

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

module.exports = '1.1.1';
module.exports = '1.1.2';
{
"name": "cp-data",
"version": "1.1.1",
"version": "1.1.2",
"description": "cp-data is a JavaScript library for some common data structures",

@@ -11,23 +11,8 @@ "main": "index.js",

],
"config": {
"blanket": {
"pattern": "lib",
"data-cover-never": [
"node_modules",
"test"
]
}
},
"devDependencies": {
"benchmark": "~1.0.0",
"blanket": "1.x.x",
"browserify": "~2.35.1",
"browserify": "~2.33.1",
"chai": "1.7.x",
"grunt": "~0.4.1",
"grunt-browserify": "~1.2.8",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-watch": "~0.5.3",
"grunt-mocha-cov": "0.0.7",
"jshint": "2.1.x",
"istanbul": "~0.1.44",
"mocha": "1.12.x",

@@ -44,2 +29,1 @@ "semver": "2.1.x",

}

Sorry, the diff of this file is not supported yet

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