Socket
Socket
Sign inDemoInstall

@redux-saga/delay-p

Package Overview
Dependencies
1
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.2.0

import-condition-proxy.mjs

8

dist/redux-saga-delay-p.cjs.js

@@ -7,2 +7,3 @@ 'use strict';

var MAX_SIGNED_INT = 2147483647;
function delayP(ms, val) {

@@ -13,5 +14,10 @@ if (val === void 0) {

// https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#maximum_delay_value
if (process.env.NODE_ENV !== 'production' && ms > MAX_SIGNED_INT) {
throw new Error('delay only supports a maximum value of ' + MAX_SIGNED_INT + 'ms');
}
var timeoutId;
var promise = new Promise(function (resolve) {
timeoutId = setTimeout(resolve, ms, val);
timeoutId = setTimeout(resolve, Math.min(MAX_SIGNED_INT, ms), val);
});

@@ -18,0 +24,0 @@

import { CANCEL } from '@redux-saga/symbols';
var MAX_SIGNED_INT = 2147483647;
function delayP(ms, val) {

@@ -8,5 +9,10 @@ if (val === void 0) {

// https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#maximum_delay_value
if (process.env.NODE_ENV !== 'production' && ms > MAX_SIGNED_INT) {
throw new Error('delay only supports a maximum value of ' + MAX_SIGNED_INT + 'ms');
}
var timeoutId;
var promise = new Promise(function (resolve) {
timeoutId = setTimeout(resolve, ms, val);
timeoutId = setTimeout(resolve, Math.min(MAX_SIGNED_INT, ms), val);
});

@@ -13,0 +19,0 @@

19

package.json
{
"name": "@redux-saga/delay-p",
"version": "1.1.2",
"version": "1.2.0",
"description": "Promisified setTimeout",

@@ -10,4 +10,14 @@ "main": "./dist/redux-saga-delay-p.cjs.js",

"dist",
"*.d.ts"
"*.d.ts",
"import-condition-proxy.mjs"
],
"exports": {
".": {
"types": "./index.d.ts",
"module": "./dist/redux-saga-delay-p.esm.js",
"import": "./import-condition-proxy.mjs",
"default": "./dist/redux-saga-delay-p.cjs.js"
},
"./package.json": "./package.json"
},
"scripts": {

@@ -19,3 +29,3 @@ "clean": "rimraf dist",

},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/delay-p",
"repository": "https://github.com/redux-saga/redux-saga/tree/main/packages/delay-p",
"keywords": [

@@ -61,4 +71,3 @@ "promise",

"rollup-plugin-babel": "5.0.0-alpha.0"
},
"gitHead": "da88bb4df0de4066597bd34739580d986f67e0f0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc