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

contentful-sdk-core

Package Overview
Dependencies
Maintainers
5
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-sdk-core - npm Package Compare versions

Comparing version 3.5.6 to 3.5.7

index.es-modules.js

2

dist/es-modules/create-backoff.js

@@ -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 @@

4

dist/es5/create-backoff.js

@@ -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 @@

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