contentful-sdk-core
Advanced tools
Comparing version 3.5.6 to 3.5.7
@@ -0,1 +1,3 @@ | ||
import { Promise } from 'es6-promise'; | ||
import promisedWait from './promised-wait'; | ||
@@ -2,0 +4,0 @@ |
@@ -0,1 +1,3 @@ | ||
import { Promise } from 'es6-promise'; | ||
export default function promisedWait(ms) { | ||
@@ -2,0 +4,0 @@ return new Promise(function (resolve) { |
@@ -0,1 +1,3 @@ | ||
import { Promise } from 'es6-promise'; | ||
import promisedWait from './promised-wait'; | ||
@@ -2,0 +4,0 @@ |
@@ -8,2 +8,4 @@ 'use strict'; | ||
var _es6Promise = require('es6-promise'); | ||
var _promisedWait = require('./promised-wait'); | ||
@@ -34,3 +36,3 @@ | ||
} else { | ||
return Promise.reject(error); | ||
return _es6Promise.Promise.reject(error); | ||
} | ||
@@ -37,0 +39,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.default = promisedWait; | ||
var _es6Promise = require('es6-promise'); | ||
function promisedWait(ms) { | ||
return new Promise(function (resolve) { | ||
return new _es6Promise.Promise(function (resolve) { | ||
setTimeout(resolve, ms || 3000); | ||
}); | ||
} | ||
module.exports = exports["default"]; | ||
module.exports = exports['default']; |
@@ -8,2 +8,4 @@ 'use strict'; | ||
var _es6Promise = require('es6-promise'); | ||
var _promisedWait = require('./promised-wait'); | ||
@@ -46,3 +48,3 @@ | ||
// call the wrapped method | ||
var tmp = Promise.resolve(fn.apply(call.self, call.args)); | ||
var tmp = _es6Promise.Promise.resolve(fn.apply(call.self, call.args)); | ||
// resolve the call with a possibly rejected promise | ||
@@ -54,3 +56,3 @@ call.resolve(tmp); | ||
call.reject(err); | ||
result = Promise.resolve(); | ||
result = _es6Promise.Promise.resolve(); | ||
} | ||
@@ -80,3 +82,3 @@ | ||
var args = Array.prototype.slice.call(arguments); | ||
return new Promise(function (resolve, reject) { | ||
return new _es6Promise.Promise(function (resolve, reject) { | ||
callQueue.push({ | ||
@@ -83,0 +85,0 @@ reject: reject, |
{ | ||
"name": "contentful-sdk-core", | ||
"version": "3.5.6", | ||
"version": "3.5.7", | ||
"description": "Core modules for the Contentful JS SDKs", | ||
"homepage": "https://www.contentful.com/developers/docs/javascript/", | ||
"main": "index.js", | ||
"modules": "index.es-modules.js", | ||
"module": "index.es-modules.js", | ||
"jsnext:main": "index.es-modules.js", | ||
@@ -33,2 +33,3 @@ "repository": { | ||
"index.js", | ||
"index.es-modules.js", | ||
"bin" | ||
@@ -41,2 +42,3 @@ ], | ||
"axios": "^0.15.3", | ||
"es6-promise": "^4.0.5", | ||
"lodash": "^4.17.4", | ||
@@ -43,0 +45,0 @@ "qs": "^6.1.0" |
@@ -42,3 +42,3 @@ # contentful-sdk-core | ||
For bundlers like webpack2 and rollup we support the `modules` & | ||
For bundlers like webpack2 and rollup we support the `module` & | ||
`jsnext:main` entry in the package.json | ||
@@ -45,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33019
25
642
4
1
+ Addedes6-promise@^4.0.5
+ Addedes6-promise@4.2.8(transitive)