@contrail/util 1.0.40 → 1.0.42

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.
@@ -12,8 +12,8 @@ export declare const ACTION_IDENTIFIER_VALIDATION_START_WITH_AT = "Invalid actio
12
12
  export declare const ACTION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = "Invalid action definition identifier. Please use the format: '@appIdentifier@versionId:actionIdentifier'. Action definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_-/A-Za-z0-9]+)@([_-/A-Za-z0-9])+:([_-/A-Za-z0-9])+";
13
13
  export declare const ACTION_IDENTIFIER_VALIDATION_BAD_CHARACTERS = "Invalid action definitions identifier. Please use the format: '@appIdentifier@versionId:actionIdentifier'. 'appIdentifier', 'versionId', and 'actionIdentifier' must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_-/A-Za-z0-9]+)@([_-/A-Za-z0-9])+:([_-/A-Za-z0-9])+.";
14
14
  export declare const EXTENSION_IDENTIFIER_VALIDATION_NO_IDENTIFIER = "Extension definition has no identifier. An identifier is required.";
15
- export declare const EXTENSION_IDENTIFIER_VALIDATION_START_WITH_AT = "Invalid extension identifier. Action definition identifier must conform with '@appIdentifier:extensionIdentifier'";
16
- export declare const EXTENSION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = "Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. Action definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_-/A-Za-z0-9]+)@([_-/A-Za-z0-9])+:([_-/A-Za-z0-9])+";
15
+ export declare const EXTENSION_IDENTIFIER_VALIDATION_START_WITH_AT = "Invalid extension identifier. Extension identifier must conform with '@appIdentifier:extensionIdentifier'";
16
+ export declare const EXTENSION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = "Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. Extension definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_-/A-Za-z0-9]+)@([_-/A-Za-z0-9])+:([_-/A-Za-z0-9])+";
17
17
  export declare const EXTENSION_IDENTIFIER_VALIDATION_BAD_CHARACTERS = "Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. 'appIdentifier' and 'extensionIdentifier' must only contain alphanumeric characters and special characters '/' '-' '_' '.' and conform to the regex ^@([_.-/A-Za-z0-9]+)@([_.-/A-Za-z0-9])+:([_.-/A-Za-z0-9])+.";
18
18
  export declare class BadIdentifierException extends Error {
19
19
  }
@@ -6,8 +6,8 @@ exports.ACTION_IDENTIFIER_VALIDATION_START_WITH_AT = `Invalid action identifier.
6
6
  exports.ACTION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = `Invalid action definition identifier. Please use the format: '@appIdentifier@versionId:actionIdentifier'. Action definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_\-\/A-Za-z0-9]+)@([_\-\/A-Za-z0-9])+:([_\-\/A-Za-z0-9])+`;
7
7
  exports.ACTION_IDENTIFIER_VALIDATION_BAD_CHARACTERS = `Invalid action definitions identifier. Please use the format: '@appIdentifier@versionId:actionIdentifier'. 'appIdentifier', 'versionId', and 'actionIdentifier' must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_\-\/A-Za-z0-9]+)@([_\-\/A-Za-z0-9])+:([_\-\/A-Za-z0-9])+.`;
8
8
  exports.EXTENSION_IDENTIFIER_VALIDATION_NO_IDENTIFIER = 'Extension definition has no identifier. An identifier is required.';
9
- exports.EXTENSION_IDENTIFIER_VALIDATION_START_WITH_AT = `Invalid extension identifier. Action definition identifier must conform with '@appIdentifier:extensionIdentifier'`;
10
- exports.EXTENSION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = `Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. Action definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_\-\/A-Za-z0-9]+)@([_\-\/A-Za-z0-9])+:([_\-\/A-Za-z0-9])+`;
9
+ exports.EXTENSION_IDENTIFIER_VALIDATION_START_WITH_AT = `Invalid extension identifier. Extension identifier must conform with '@appIdentifier:extensionIdentifier'`;
10
+ exports.EXTENSION_IDENTIFIER_VALIDATION_INCORRECT_PATTERN = `Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. Extension definitions must only contain alphanumeric characters and special characters '/' '-' '_' and conform to the regex ^@([_\-\/A-Za-z0-9]+)@([_\-\/A-Za-z0-9])+:([_\-\/A-Za-z0-9])+`;
11
11
  exports.EXTENSION_IDENTIFIER_VALIDATION_BAD_CHARACTERS = `Invalid extension identifier. Please use the format: '@appIdentifier:extensionIdentifier'. 'appIdentifier' and 'extensionIdentifier' must only contain alphanumeric characters and special characters '/' '-' '_' '.' and conform to the regex ^@([_\.\-\/A-Za-z0-9]+)@([_\.\-\/A-Za-z0-9])+:([_\.\-\/A-Za-z0-9])+.`;
12
12
  class BadIdentifierException extends Error {
13
13
  }
@@ -14,7 +14,7 @@ function determineChangesIfEqual(target, priorSourceValues, newSourceValues, pro
14
14
  if (newSourceValues[propKey] === undefined) {
15
15
  continue;
16
16
  }
17
- if (!target[propKey] || (priorSourceValues[propKey] === target[propKey])) {
17
+ if (!target.hasOwnProperty(propKey) || (priorSourceValues[propKey] === target[propKey])) {
18
18
  changes[propKey] = newSourceValues[propKey];
19
19
  }
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "General javascript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",