@mparticle/web-sdk
Advanced tools
Comparing version 2.16.2 to 2.16.3
{ | ||
"name": "@mparticle/web-sdk", | ||
"version": "2.16.2", | ||
"version": "2.16.3", | ||
"description": "mParticle core SDK for web applications", | ||
@@ -57,3 +57,8 @@ "license": "Apache-2.0", | ||
"gts:fix": "gts fix", | ||
"prettier": "node_modules/.bin/prettier --check \"**/*.js\"" | ||
"prettier": "node_modules/.bin/prettier --check \"**/*.js\"", | ||
"uglify": "npx uglify-js dist/mparticle.js --output dist/mparticle.min.js", | ||
"gzip": "gzip -c dist/mparticle.min.js > dist/mparticle.min.js.gz", | ||
"bundle": "npm run uglify && npm run gzip", | ||
"report:bundled": "ls -l dist/mparticle.min.js.gz | awk '{print $5}'", | ||
"report:bundled:human": "ls -lh dist/mparticle.min.js.gz | awk '{print $5}'" | ||
}, | ||
@@ -64,3 +69,5 @@ "pre-commit": [ | ||
"devDependencies": { | ||
"@babel/core": "^7.6.0", | ||
"@babel/core": "^7.18.6", | ||
"@babel/eslint-parser": "^7.18.2", | ||
"@babel/eslint-plugin": "^7.17.7", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
@@ -85,3 +92,2 @@ "@babel/plugin-proposal-object-rest-spread": "^7.5.5", | ||
"@types/node": "^16.0.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-preset-minify": "^0.5.1", | ||
@@ -92,3 +98,3 @@ "browser-sync": "^2.26.3", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.25.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "8.3.0", | ||
@@ -95,0 +101,0 @@ "eslint-plugin-prettier": "3.4.1", |
@@ -139,3 +139,7 @@ import { Batch } from '@mparticle/event-models'; | ||
uploadBatchObject = onCreateBatchCallback(uploadBatchObject); | ||
uploadBatchObject.modified = true; | ||
if (uploadBatchObject) { | ||
uploadBatchObject.modified = true; | ||
} else { | ||
mpInstance.Logger.warning('Skiping batch upload because no batch was returned from onCreateBatch callback'); | ||
} | ||
} | ||
@@ -142,0 +146,0 @@ |
@@ -330,4 +330,3 @@ import { | ||
const promotionAction: EventsApi.PromotionAction = { | ||
action: sdkEvent.PromotionAction | ||
.PromotionActionType as EventsApi.PromotionActionActionEnum, | ||
action: sdkEvent.PromotionAction.PromotionActionType as EventsApi.PromotionActionActionEnum, | ||
promotions: convertPromotions(sdkEvent.PromotionAction.PromotionList), | ||
@@ -334,0 +333,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1383463
24252
54