contentful-import
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -10,3 +10,3 @@ 'use strict'; | ||
var _getOutdatedDestinationContent = require('contentful-batch-libs/get/get-outdated-destination-content'); | ||
var _getOutdatedDestinationContent = require('contentful-batch-libs/dist/get/get-outdated-destination-content'); | ||
@@ -13,0 +13,0 @@ var _getOutdatedDestinationContent2 = _interopRequireDefault(_getOutdatedDestinationContent); |
@@ -10,7 +10,7 @@ 'use strict'; | ||
var _createClients = require('contentful-batch-libs/utils/create-clients'); | ||
var _createClients = require('contentful-batch-libs/dist/utils/create-clients'); | ||
var _createClients2 = _interopRequireDefault(_createClients); | ||
var _pushToSpace = require('contentful-batch-libs/push/push-to-space'); | ||
var _pushToSpace = require('contentful-batch-libs/dist/push/push-to-space'); | ||
@@ -23,3 +23,3 @@ var _pushToSpace2 = _interopRequireDefault(_pushToSpace); | ||
var _transformSpace = require('contentful-batch-libs/transform/transform-space'); | ||
var _transformSpace = require('contentful-batch-libs/dist/transform/transform-space'); | ||
@@ -36,2 +36,6 @@ var _transformSpace2 = _interopRequireDefault(_transformSpace); | ||
var _fs = require('fs'); | ||
var _fs2 = _interopRequireDefault(_fs); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -46,3 +50,3 @@ | ||
opts.destinationManagementToken = usageParams.managementToken; | ||
opts.content = usageParams.content; | ||
opts.content = usageParams.content || JSON.parse(_fs2.default.readFileSync(usageParams.contentFile)); | ||
} | ||
@@ -49,0 +53,0 @@ var clients = (0, _createClients2.default)(opts); |
@@ -39,7 +39,7 @@ 'use strict'; | ||
}).option('rate-limit', { | ||
describe: 'How many requests to perform per period of time, default is 5', | ||
describe: 'How many requests to perform per period of time', | ||
type: 'number', | ||
default: 5 | ||
}).option('rate-limit-period', { | ||
describe: 'How much time to wait before retry in ms, default 1000', | ||
describe: 'How much time to wait before retry in ms', | ||
type: 'number', | ||
@@ -46,0 +46,0 @@ default: 1000 |
{ | ||
"name": "contentful-import", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "this tool allows you to import JSON dump exported by contentful-export", | ||
@@ -52,3 +52,3 @@ "bin": { | ||
"bluebird": "^3.3.3", | ||
"contentful-batch-libs": "^4.9.2", | ||
"contentful-batch-libs": "5.1.0", | ||
"json-stringify-safe": "^5.0.1", | ||
@@ -95,3 +95,6 @@ "lodash": "^4.0.0", | ||
} | ||
}, | ||
"publishConfig": { | ||
"tag": "beta" | ||
} | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17437
179
2
+ Addedcontentful-batch-libs@5.1.0(transitive)
+ Addedcontentful-management@3.12.0(transitive)
+ Addedcontentful-sdk-core@3.14.4(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedplatform@1.3.3(transitive)
- Removedansi@0.3.1(transitive)
- Removedbabel-runtime@6.26.06.9.2(transitive)
- Removedcontentful-batch-libs@4.9.2(transitive)
- Removedcontentful-management@1.3.1(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedgauge@1.2.7(transitive)
- Removedlodash.pad@4.5.1(transitive)
- Removedlodash.padend@4.6.1(transitive)
- Removedlodash.padstart@4.6.1(transitive)
- Removednpmlog@2.0.4(transitive)
- Removedregenerator-runtime@0.11.10.9.6(transitive)
Updatedcontentful-batch-libs@5.1.0