@voiceflow/common
Advanced tools
Comparing version 7.7.1 to 7.8.0
"use strict"; | ||
/* eslint-disable import/prefer-default-export */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +3,0 @@ exports.Environment = void 0; |
"use strict"; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
if (kind === "m") throw new TypeError("Private method is not writable"); | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
@@ -18,3 +16,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
}; | ||
var _alg, _key; | ||
var _Synchronous_alg, _Synchronous_key; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -24,12 +22,12 @@ const enc_utf8_1 = __importDefault(require("crypto-js/enc-utf8")); | ||
constructor({ alg, key }) { | ||
_alg.set(this, void 0); | ||
_key.set(this, void 0); | ||
__classPrivateFieldSet(this, _alg, alg); | ||
__classPrivateFieldSet(this, _key, key); | ||
_Synchronous_alg.set(this, void 0); | ||
_Synchronous_key.set(this, void 0); | ||
__classPrivateFieldSet(this, _Synchronous_alg, alg, "f"); | ||
__classPrivateFieldSet(this, _Synchronous_key, key, "f"); | ||
} | ||
getKey() { | ||
return __classPrivateFieldGet(this, _key); | ||
return __classPrivateFieldGet(this, _Synchronous_key, "f"); | ||
} | ||
encrypt(data, key = __classPrivateFieldGet(this, _key)) { | ||
return __classPrivateFieldGet(this, _alg).encrypt(data, key).toString(); | ||
encrypt(data, key = __classPrivateFieldGet(this, _Synchronous_key, "f")) { | ||
return __classPrivateFieldGet(this, _Synchronous_alg, "f").encrypt(data, key).toString(); | ||
} | ||
@@ -39,4 +37,4 @@ encryptJSON(data) { | ||
} | ||
decrypt(data, key = __classPrivateFieldGet(this, _key)) { | ||
return __classPrivateFieldGet(this, _alg).decrypt(data, key).toString(enc_utf8_1.default); | ||
decrypt(data, key = __classPrivateFieldGet(this, _Synchronous_key, "f")) { | ||
return __classPrivateFieldGet(this, _Synchronous_alg, "f").decrypt(data, key).toString(enc_utf8_1.default); | ||
} | ||
@@ -47,4 +45,4 @@ decryptJSON(data) { | ||
} | ||
_alg = new WeakMap(), _key = new WeakMap(); | ||
_Synchronous_alg = new WeakMap(), _Synchronous_key = new WeakMap(); | ||
exports.default = Synchronous; | ||
//# sourceMappingURL=synchronous.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateHash = void 0; | ||
// eslint-disable-next-line import/prefer-default-export | ||
const generateHash = (object) => { | ||
@@ -6,0 +5,0 @@ const objectStr = typeof object === 'object' ? JSON.stringify(object) : String(object); |
@@ -31,3 +31,2 @@ "use strict"; | ||
}; | ||
// eslint-disable-next-line import/prefer-default-export | ||
const parser = (exp) => { | ||
@@ -34,0 +33,0 @@ let sanitized = exp; |
@@ -7,3 +7,2 @@ "use strict"; | ||
exports.getTopLevelDiff = exports.getDiff = exports.filterEntries = exports.setIn = exports.getIn = exports.hasProperty = exports.pick = exports.getKeys = void 0; | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep")); | ||
@@ -10,0 +9,0 @@ const isObject_1 = __importDefault(require("lodash/isObject")); |
@@ -2032,4 +2032,3 @@ "use strict"; | ||
const getTimezones = () => timezoneGroups.flatMap((group) => group.zones.map((zone) => zone.value)); | ||
// eslint-disable-next-line import/prefer-default-export | ||
exports.TIMEZONES = getTimezones(); | ||
//# sourceMappingURL=timezones.js.map |
@@ -42,3 +42,2 @@ "use strict"; | ||
const deepVariableSubstitution = (bodyData, variableMap) => { | ||
// eslint-disable-next-line no-underscore-dangle | ||
const _recurse = (subCollection, modifier) => { | ||
@@ -45,0 +44,0 @@ if (!subCollection) { |
{ | ||
"name": "@voiceflow/common", | ||
"description": "Junk drawer of utility functions", | ||
"version": "7.7.1", | ||
"version": "7.8.0", | ||
"author": "Voiceflow", | ||
@@ -9,7 +9,2 @@ "bugs": { | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -26,3 +21,2 @@ "@types/crypto-js": "^4.0.2", | ||
"devDependencies": { | ||
"@commitlint/cli": "^12.1.4", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
@@ -36,22 +30,10 @@ "@types/chai": "^4.2.18", | ||
"@types/sinon": "^10.0.0", | ||
"@voiceflow/commitlint-config": "^1.1.0", | ||
"@voiceflow/eslint-config": "^3.2.2", | ||
"@voiceflow/git-branch-check": "^1.2.0", | ||
"@voiceflow/prettier-config": "^1.0.5", | ||
"@zerollup/ts-transform-paths": "^1.7.18", | ||
"chai": "^4.3.4", | ||
"chai-as-promised": "^7.1.1", | ||
"commitizen": "^4.2.4", | ||
"cz-conventional-changelog": "^3.2.0", | ||
"depcheck": "^1.4.1", | ||
"eslint": "^7.26.0", | ||
"eslint-output": "^3.0.1", | ||
"fixpack": "^4.0.0", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^11.0.0", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.0", | ||
"rimraf": "^3.0.2", | ||
"source-map-support": "^0.5.19", | ||
"ts-mocha": "^8.0.0", | ||
@@ -66,3 +48,3 @@ "ts-node": "^9.1.1", | ||
], | ||
"homepage": "https://github.com/voiceflow/common#readme", | ||
"homepage": "https://github.com/voiceflow/libs#readme", | ||
"keywords": [ | ||
@@ -73,6 +55,5 @@ "voiceflow" | ||
"main": "build/index.js", | ||
"prettier": "@voiceflow/prettier-config", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/voiceflow/common.git" | ||
"url": "git+https://github.com/voiceflow/libs.git" | ||
}, | ||
@@ -97,3 +78,4 @@ "scripts": { | ||
}, | ||
"types": "build/index.d.ts" | ||
"types": "build/index.d.ts", | ||
"gitHead": "ce5c6d5c953856c052911135159ba5dcea34a9ad" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21
173745
3196