@mparticle/web-sdk 2.16.1 → 2.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-sdk",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "description": "mParticle core SDK for web applications",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -67,13 +67,18 @@
67
67
  "@babel/preset-env": "^7.6.0",
68
68
  "@babel/preset-typescript": "^7.6.0",
69
69
  "@mparticle/data-planning-models": "^0.1.0",
70
- "@mparticle/event-models": "^1.1.4",
70
+ "@mparticle/event-models": "^1.1.6",
71
71
  "@rollup/plugin-json": "^4.1.0",
72
+ "@rollup/plugin-typescript": "^8.3.3",
73
+ "@rollup/plugin-babel": "5.3.1",
74
+ "@rollup/plugin-commonjs": "22.0.1",
75
+ "@rollup/plugin-node-resolve": "13.3.0",
72
76
  "@semantic-release/changelog": "^5.0.1",
73
77
  "@semantic-release/exec": "^5.0.0",
74
78
  "@semantic-release/git": "^9.0.0",
75
79
  "@types/chai": "^4.2.3",
76
80
  "@types/mocha": "^9.0.0",
81
+ "@types/mparticle__web-sdk": "^2.16.1",
77
82
  "@types/node": "^16.0.0",
78
83
  "babel-eslint": "^10.0.3",
79
84
  "babel-preset-minify": "^0.5.1",
@@ -99,11 +104,7 @@
99
104
  "mocha": "^9.0.0",
100
105
  "pre-commit": "^1.2.2",
101
106
  "prettier": "1.18.2",
102
- "rollup": "^1.19.4",
103
- "rollup-plugin-babel": "^4.3.3",
104
- "rollup-plugin-commonjs": "^10.1.0",
105
- "rollup-plugin-node-resolve": "^5.2.0",
106
- "rollup-plugin-typescript": "^1.0.1",
107
+ "rollup": "^2.75.7",
107
108
  "shelljs": "^0.8.4",
108
109
  "should": "^7.1.0",
109
110
  "sinon": "^11.0.0",
@@ -136,7 +136,7 @@ export class BatchUploader {
136
136
 
137
137
  if (onCreateBatchCallback) {
138
138
  uploadBatchObject = onCreateBatchCallback(uploadBatchObject);
139
- uploadBatchObject.mutated = true;
139
+ uploadBatchObject.modified = true;
140
140
  }
141
141
 
142
142
  if (uploadBatchObject) {
package/src/constants.ts CHANGED
@@ -59,8 +59,7 @@ const Constants = {
59
59
  'identityRequests to modify require userIdentities to be present. Request not sent to server. Please fix and try again',
60
60
  IdentityRequesetInvalidKey:
61
61
  'There is an invalid key on your identityRequest object. It can only contain a `userIdentities` object and a `onUserAlias` function. Request not sent to server. Please fix and try again.',
62
- OnUserAliasType:
63
- 'The onUserAlias value must be a function. The onUserAlias provided is of type',
62
+ OnUserAliasType: 'The onUserAlias value must be a function.',
64
63
  UserIdentities:
65
64
  'The userIdentities key must be an object with keys of identityTypes and values of strings. Request not sent to server. Please fix and try again.',
66
65
  UserIdentitiesInvalidKey:
package/src/utils.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  type valueof<T> = T[keyof T];
2
2
 
3
3
  const inArray = (items: any[], name: string): boolean => {
4
- const i = 0;
4
+ let i = 0;
5
5
 
6
6
  if (Array.prototype.indexOf) {
7
7
  return items.indexOf(name, 0) >= 0;
package/src/validators.ts CHANGED
@@ -78,11 +78,9 @@ const Validators = {
78
78
  ) {
79
79
  return {
80
80
  valid: false,
81
- // FIXME: Validates type safety
82
81
  error:
83
82
  Constants.Messages.ValidationMessages
84
- .OnUserAliasType +
85
- typeof identityApiData[key],
83
+ .OnUserAliasType,
86
84
  };
87
85
  }
88
86
  }