New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

contentful

Package Overview
Dependencies
Maintainers
5
Versions
463
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful - npm Package Compare versions

Comparing version 3.8.1 to 4.0.0

dist/contentful.min.js

17

index.js

@@ -1,16 +0,3 @@

// To understand why axios is vendored, check SETUP.md
var axios = require('contentful-sdk-core/vendor-node/axios')
var contentful
try {
contentful = require('./dist/contentful').default
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
require('babel-register')
contentful = require('./lib/contentful').default
} else {
console.log(err)
process.exit(1)
}
}
var axios = require('axios')
var contentful = require('./dist/contentful').default
module.exports = {

@@ -17,0 +4,0 @@ createClient: function (params) {

{
"name": "contentful",
"version": "4.0.0",
"description": "Client for Contentful's Content Delivery API",

@@ -14,11 +15,13 @@ "homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",

"scripts": {
"clean": "rimraf dist && rimraf browser-dist && rimraf coverage && rimraf out",
"build:ci": "npm run vendor:version && npm run build:dist && npm run build:standalone",
"clean": "rimraf dist && rimraf coverage",
"build": "npm run clean && npm run build:ci",
"build:dist": "babel lib --out-dir dist",
"build:standalone": "webpack && webpack -p --output-filename contentful.min.js",
"docs:build": "jsdoc -r -c ./jsdoc.json dist",
"build:ci": "npm run vendor:version && npm run build:standalone",
"build:standalone": "BABEL_ENV=webpack webpack && BABEL_ENV=webpack webpack -p --output-filename contentful.min.js",
"build:standalone:log": "BABEL_ENV=webpack npm run build && webpack -p --json --profile --output-filename contentful.min.js > webpack-build-log.json",
"docs:build": "esdoc -c esdoc.json",
"docs:dev": "npm run build && npm run docs:build",
"docs:watch": "watchy -w lib npm run docs:dev",
"docs:publish": "npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful.js contentful",
"lint": "eslint lib test",
"pretest": "npm run lint",
"test:ci": "npm run build && ./node_modules/contentful-sdk-core/bin/test-ci.sh",

@@ -28,5 +31,7 @@ "test:cover": "BABEL_ENV=test babel-node ./node_modules/istanbul/lib/cli.js cover test/runner",

"test:debug": "BABEL_ENV=test babel-node debug ./test/runner",
"test:integration": "babel-node ./test/integration/tests.js",
"test:browser-local": "BABEL_ENV=test ./node_modules/.bin/karma start karma.conf.local.js",
"test:browser-remote": "BABEL_ENV=test ./node_modules/.bin/karma start karma.conf.saucelabs.js",
"test:integration": "BABEL_ENV=test babel-node ./test/integration/tests.js",
"test:integration-debug": "BABEL_ENV=test babel-node debug ./test/integration/tests.js",
"test:browser-local": "BABEL_ENV=test karma start karma.conf.local.js",
"test:browser-remote": "BABEL_ENV=test karma start karma.conf.saucelabs.js",
"test:simulate-ci": "trevor",
"vendor:version": "echo \"module.exports = '`cat package.json|json version`'\" > version.js",

@@ -42,34 +47,44 @@ "browser-coverage": "npm run test:cover && opener coverage/lcov-report/index.html",

"devdep:install": "npm run devdep:build && rm -rf node_modules/contentful-sdk-core && npm install ../contentful-sdk-core && npm run devdep:clean",
"devdep:uninstall": "npm run devdep:clean && rimraf node_modules/contentful-sdk-core"
"devdep:uninstall": "npm run devdep:clean && rimraf node_modules/contentful-sdk-core",
"precommit": "npm run lint",
"prepush": "npm run test:only"
},
"browser": "./browser.js",
"node": "./browser.js",
"types": "./index.d.ts",
"files": [
"browser.js",
"index.js",
"version.js",
"dist",
"browser-dist",
"tonic-example.js"
],
"dependencies": {
"babel-runtime": "~6.3.19",
"contentful-sdk-core": "~2.5.0",
"json-stringify-safe": "~5.0.1",
"lodash": "~4.2.0"
"json-stringify-safe": "^5.0.1",
"lodash": "^4.17.4",
"axios": "~0.15.3",
"contentful-sdk-core": "^3.5.10",
"es6-promise": "^4.0.5"
},
"devDependencies": {
"axios": "^0.9.1",
"babel-cli": "^6.4.5",
"babel-eslint": "^6.0.3",
"babel-loader": "^6.2.2",
"babel-plugin-rewire": "^1.0.0-beta-5",
"babel-plugin-transform-runtime": "^6.4.3",
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.4.3",
"blue-tape": "^0.2.0",
"contentful-sdk-jsdoc": "^1.2.0",
"coveralls": "^2.11.6",
"cz-conventional-changelog": "^1.1.5",
"ghooks": "^1.3.2",
"babel-cli": "^6.7.5",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-rewire": "^1.0.0",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-runtime": "^6.7.5",
"babel-preset-env": "^1.1.8",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.7.2",
"babel-template": "^6.22.0",
"babel-types": "^6.22.0",
"blue-tape": "^1.0.0",
"contentful-sdk-jsdoc": "^1.2.2",
"coveralls": "^2.11.9",
"cz-conventional-changelog": "^1.1.6",
"esdoc": "^0.5.2",
"eslint": "^3.16.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.2",
"eslint-plugin-standard": "^2.0.1",
"husky": "^0.13.1",
"in-publish": "^2.0.0",

@@ -79,30 +94,28 @@ "istanbul": "^1.0.0-alpha.2",

"json": "^9.0.3",
"json-loader": "^0.5.4",
"karma": "^0.13.21",
"karma": "^1.4.1",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^0.2.2",
"karma-sauce-launcher": "^0.3.0",
"karma-tap": "^1.0.3",
"karma-webpack": "^1.7.0",
"karma-chrome-launcher": "^2.0.0",
"karma-sauce-launcher": "^1.1.0",
"karma-tap": "^3.1.1",
"karma-webpack": "^2.0.2",
"lodash-webpack-plugin": "^0.11.2",
"mkdirp": "^0.5.1",
"opener": "^1.4.1",
"require-all": "^2.0.0",
"rimraf": "^2.5.1",
"semantic-release": "^4.3.5",
"require-all": "^2.2.0",
"rimraf": "^2.6.0",
"semantic-release": "^6.3.2",
"sinon": "^2.0.0-pre",
"standard": "^6.0.8",
"webpack": "^1.12.13"
"trevor": "^2.2.0",
"webpack": "^2.2.1"
},
"standard": {
"parser": "babel-eslint"
"engines": {
"node": ">=4.7.2"
},
"publishConfig": {
"tag": "beta"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm run test:only"
}
},
"version": "3.8.1"
}
}
}

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

module.exports = '3.8.1'
module.exports = '4.0.0'

Sorry, the diff of this file is too big to display

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