Socket
Socket
Sign inDemoInstall

fast-unique-numbers

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-unique-numbers - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

2

build/es2018/helpers/generate-unique-number.js

@@ -6,3 +6,3 @@ const LAST_NUMBER_WEAK_MAP = new WeakMap();

*/
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
const MAX_SAFE_INTEGER = (Number.MAX_SAFE_INTEGER === undefined) ? 9007199254740991 : Number.MAX_SAFE_INTEGER;
const cache = (collection, nextNumber) => {

@@ -9,0 +9,0 @@ LAST_NUMBER_WEAK_MAP.set(collection, nextNumber);

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
factory(global.fastUniqueNumbers = {});
}(typeof self !== 'undefined' ? self : this, function (exports) { 'use strict';
(global = global || self, factory(global.fastUniqueNumbers = {}));
}(this, function (exports) { 'use strict';

@@ -13,3 +13,3 @@ var LAST_NUMBER_WEAK_MAP = new WeakMap();

var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER === undefined ? 9007199254740991 : Number.MAX_SAFE_INTEGER;

@@ -16,0 +16,0 @@ var cache = function cache(collection, nextNumber) {

@@ -13,3 +13,3 @@ "use strict";

const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER === undefined ? 9007199254740991 : Number.MAX_SAFE_INTEGER;

@@ -16,0 +16,0 @@ const cache = (collection, nextNumber) => {

@@ -30,3 +30,3 @@ {

"eslint": "^5.10.0",
"eslint-config-holy-grail": "^32.0.0",
"eslint-config-holy-grail": "^33.0.0",
"grunt": "^1.0.3",

@@ -41,4 +41,4 @@ "grunt-babel": "^8.0.0",

"gruntify-eslint": "^5.0.0",
"husky": "^1.2.1",
"karma": "^3.1.3",
"husky": "^1.3.0",
"karma": "^3.1.4",
"karma-browserstack-launcher": "^1.3.0",

@@ -55,3 +55,3 @@ "karma-chrome-launcher": "^2.2.0",

"mocha": "^5.2.0",
"rollup": "^0.68.0",
"rollup": "^0.68.1",
"rollup-plugin-babel": "^4.1.0",

@@ -61,7 +61,7 @@ "sinon": "^7.2.2",

"ts-loader": "^5.3.1",
"tsconfig-holy-grail": "^9.0.4",
"tslint": "^5.11.0",
"tslint-config-holy-grail": "^38.0.9",
"tsconfig-holy-grail": "^9.0.6",
"tslint": "^5.12.0",
"tslint-config-holy-grail": "^39.0.0",
"typescript": "^3.2.2",
"webpack": "^4.27.1"
"webpack": "^4.28.0"
},

@@ -97,3 +97,3 @@ "engines": {

"types": "build/es2018/module.d.ts",
"version": "3.0.3"
"version": "3.0.4"
}

@@ -6,3 +6,3 @@ const LAST_NUMBER_WEAK_MAP = new WeakMap<(Map<number, any> | Set<number>), number>();

*/
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
const MAX_SAFE_INTEGER = (Number.MAX_SAFE_INTEGER === undefined) ? 9007199254740991 : Number.MAX_SAFE_INTEGER;

@@ -9,0 +9,0 @@ const cache = (collection: (Map<number, any> | Set<number>), nextNumber: number) => {

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