@commercelayer/cli-plugin-exports
Advanced tools
Comparing version 3.0.0-oclif3.5 to 3.0.0-oclif3.6
@@ -44,4 +44,4 @@ "use strict"; | ||
const generateGroupUID = () => { | ||
const firstPart = Math.trunc(Math.random() * 46656); | ||
const secondPart = Math.trunc(Math.random() * 46656); | ||
const firstPart = Math.trunc(Math.random() * 46_656); | ||
const secondPart = Math.trunc(Math.random() * 46_656); | ||
const firstPartStr = ('000' + firstPart.toString(36)).slice(-3); | ||
@@ -113,3 +113,4 @@ const secondPartStr = ('000' + secondPart.toString(36)).slice(-3); | ||
const resSdk = this.cl[resType]; | ||
const totRecords = await resSdk.count({ filters: wheres, pageSize: 1, pageNumber: 1 }); | ||
const filter = { filters: wheres, pageSize: 1, pageNumber: 1 }; | ||
const totRecords = await resSdk.count(filter); | ||
exportJob.totalRecords = totRecords; | ||
@@ -244,3 +245,4 @@ const totExports = Math.ceil(totRecords / MAX_EXPORT_SIZE); | ||
expPage += curExpPages; | ||
const curExpLastPage = await resSdk.list({ filters: expJob.filter, pageSize, pageNumber: expPage, sort: { id: 'asc' } }); | ||
const filter = { filters: expJob.filter, pageSize, pageNumber: expPage, sort: { id: 'asc' } }; | ||
const curExpLastPage = await resSdk.list(filter); | ||
stopId = curExpLastPage.last()?.id; | ||
@@ -247,0 +249,0 @@ if (startId) |
@@ -881,3 +881,3 @@ { | ||
}, | ||
"version": "3.0.0-oclif3.5" | ||
"version": "3.0.0-oclif3.6" | ||
} |
{ | ||
"name": "@commercelayer/cli-plugin-exports", | ||
"description": "Commerce Layer CLI Exports plugin", | ||
"version": "3.0.0-oclif3.5", | ||
"version": "3.0.0-oclif3.6", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
@@ -10,3 +10,3 @@ "homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-exports", | ||
"engines": { | ||
"node": ">=20.10.0" | ||
"node": ">=20" | ||
}, | ||
@@ -58,26 +58,26 @@ "files": [ | ||
"@commercelayer/cli-dev": "beta", | ||
"@commercelayer/eslint-config-ts": "^1.3.0", | ||
"@oclif/plugin-help": "^6.0.14", | ||
"@oclif/test": "^3.2.0", | ||
"@commercelayer/eslint-config-ts": "^1.4.5", | ||
"@oclif/plugin-help": "^6.0.20", | ||
"@oclif/test": "^3.2.9", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/chai": "^4.3.12", | ||
"@types/chai": "^4.3.14", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.11.20", | ||
"@types/node": "^20.12.7", | ||
"@types/node-notifier": "^8.0.5", | ||
"chai": "^4.4.1", | ||
"eslint": "^8.56.0", | ||
"mocha": "^10.3.0", | ||
"eslint": "^8.57.0", | ||
"mocha": "^10.4.0", | ||
"nyc": "^15.1.0", | ||
"oclif": "^4.4.17", | ||
"semantic-release": "^23.0.2", | ||
"oclif": "^4.8.0", | ||
"semantic-release": "^23.0.8", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.4.5" | ||
}, | ||
"dependencies": { | ||
"@commercelayer/cli-core": "beta", | ||
"@commercelayer/sdk": "^5.32.0", | ||
"@oclif/core": "^3.19.5", | ||
"axios": "^1.6.7", | ||
"cli-table3": "^0.6.3", | ||
"@commercelayer/sdk": "sdk6", | ||
"@oclif/core": "^3.26.2", | ||
"axios": "^1.6.8", | ||
"cli-table3": "^0.6.4", | ||
"node-notifier": "^10.0.1", | ||
@@ -84,0 +84,0 @@ "open": "^8.4.2", |
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
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
96756
2171
- Removed@commercelayer/sdk@5.49.0(transitive)
- Removedaxios@1.7.3(transitive)
Updated@commercelayer/sdk@sdk6
Updated@oclif/core@^3.26.2
Updatedaxios@^1.6.8
Updatedcli-table3@^0.6.4