@voiceflow/common
Advanced tools
Comparing version 7.21.0 to 7.22.0
@@ -14,2 +14,1 @@ "use strict"; | ||
})(Environment = exports.Environment || (exports.Environment = {})); | ||
//# sourceMappingURL=environment.js.map |
@@ -18,2 +18,1 @@ "use strict"; | ||
__exportStar(require("./slot"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=intent.js.map |
@@ -19,2 +19,1 @@ "use strict"; | ||
exports.VALID_SAMPLE_UTTERANCE = `[^${exports.VALID_SAMPLE_CHARACTERS}|]`; | ||
//# sourceMappingURL=regexp.js.map |
@@ -5,2 +5,1 @@ "use strict"; | ||
exports.VF_DM_PREFIX = 'dm_'; | ||
//# sourceMappingURL=runtime.js.map |
@@ -10,2 +10,1 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=slot.js.map |
@@ -23,2 +23,1 @@ "use strict"; | ||
exports.default = Base64; | ||
//# sourceMappingURL=base64.js.map |
@@ -32,2 +32,1 @@ "use strict"; | ||
exports.hex2abc = hex2abc; | ||
//# sourceMappingURL=hex2abc.js.map |
@@ -13,2 +13,1 @@ "use strict"; | ||
Object.defineProperty(exports, "Synchronous", { enumerable: true, get: function () { return __importDefault(synchronous_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -16,2 +16,1 @@ "use strict"; | ||
exports.default = MurmurHash; | ||
//# sourceMappingURL=murmurhash.js.map |
@@ -44,2 +44,1 @@ "use strict"; | ||
exports.default = Synchronous; | ||
//# sourceMappingURL=synchronous.js.map |
@@ -32,2 +32,1 @@ "use strict"; | ||
__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -18,6 +18,7 @@ export declare type Nullable<T> = T | null; | ||
}; | ||
export declare type NullableRecord<T extends object> = { | ||
export declare type PartialRecord<K extends PropertyKey, T> = Partial<Record<K, T>>; | ||
export declare type NullableRecord<T> = { | ||
[K in keyof T]: Nullable<T[K]>; | ||
}; | ||
export declare type NonNullishRecord<T extends object> = Required<{ | ||
export declare type NonNullishRecord<T> = Required<{ | ||
[K in keyof T]: NonNullable<T[K]>; | ||
@@ -24,0 +25,0 @@ }>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -126,2 +126,1 @@ "use strict"; | ||
exports.inferUnion = inferUnion; | ||
//# sourceMappingURL=array.js.map |
@@ -9,2 +9,1 @@ "use strict"; | ||
exports.getEmailDomain = getEmailDomain; | ||
//# sourceMappingURL=emails.js.map |
@@ -65,2 +65,1 @@ "use strict"; | ||
exports.withEffect = withEffect; | ||
//# sourceMappingURL=functional.js.map |
@@ -35,2 +35,1 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=generate.js.map |
@@ -24,2 +24,1 @@ "use strict"; | ||
exports.remapObjectIDs = remapObjectIDs; | ||
//# sourceMappingURL=id.js.map |
@@ -49,2 +49,1 @@ "use strict"; | ||
__exportStar(require("./variables"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -152,2 +152,1 @@ "use strict"; | ||
exports.cleanVFIntentName = cleanVFIntentName; | ||
//# sourceMappingURL=intent.js.map |
@@ -63,2 +63,1 @@ "use strict"; | ||
exports.parser = parser; | ||
//# sourceMappingURL=mathjs.js.map |
@@ -95,2 +95,1 @@ "use strict"; | ||
exports.removeAllNormalizedByKeys = removeAllNormalizedByKeys; | ||
//# sourceMappingURL=normalized.js.map |
@@ -15,2 +15,1 @@ "use strict"; | ||
exports.clamp = clamp; | ||
//# sourceMappingURL=number.js.map |
@@ -64,2 +64,1 @@ "use strict"; | ||
exports.filterEntries = exports.pickBy; | ||
//# sourceMappingURL=common.js.map |
@@ -77,2 +77,1 @@ "use strict"; | ||
exports.deepMapKeys = deepMapKeys; | ||
//# sourceMappingURL=deepMap.js.map |
@@ -41,2 +41,1 @@ "use strict"; | ||
exports.getTopLevelDiff = getTopLevelDiff; | ||
//# sourceMappingURL=diff.js.map |
@@ -17,2 +17,1 @@ "use strict"; | ||
__exportStar(require("./keys"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -62,2 +62,1 @@ "use strict"; | ||
exports.setIn = setIn; | ||
//# sourceMappingURL=keys.js.map |
@@ -26,2 +26,1 @@ "use strict"; | ||
exports.createControlledPromise = createControlledPromise; | ||
//# sourceMappingURL=promise.js.map |
@@ -28,2 +28,1 @@ "use strict"; | ||
exports.createChannel = createChannel; | ||
//# sourceMappingURL=protocol.js.map |
@@ -20,2 +20,1 @@ "use strict"; | ||
exports.getAllSamples = getAllSamples; | ||
//# sourceMappingURL=slot.js.map |
@@ -20,2 +20,1 @@ "use strict"; | ||
exports.conditionalReplace = conditionalReplace; | ||
//# sourceMappingURL=string.js.map |
@@ -73,2 +73,1 @@ "use strict"; | ||
exports.getAbbrevatedFormat = getAbbrevatedFormat; | ||
//# sourceMappingURL=time.js.map |
@@ -2033,2 +2033,1 @@ "use strict"; | ||
exports.TIMEZONES = getTimezones(); | ||
//# sourceMappingURL=timezones.js.map |
@@ -8,2 +8,1 @@ "use strict"; | ||
exports.createTypedTypeguardCreator = createTypedTypeguardCreator; | ||
//# sourceMappingURL=typeguard.js.map |
@@ -65,2 +65,1 @@ "use strict"; | ||
exports.deepVariableSubstitution = deepVariableSubstitution; | ||
//# sourceMappingURL=variables.js.map |
@@ -11,2 +11,1 @@ export var Environment; | ||
})(Environment || (Environment = {})); | ||
//# sourceMappingURL=environment.js.map |
@@ -6,2 +6,1 @@ export * from './environment'; | ||
export * from './slot'; | ||
//# sourceMappingURL=index.js.map |
export {}; | ||
//# sourceMappingURL=intent.js.map |
@@ -16,2 +16,1 @@ export const SPACE_REGEXP = / /g; | ||
export const VALID_SAMPLE_UTTERANCE = `[^${VALID_SAMPLE_CHARACTERS}|]`; | ||
//# sourceMappingURL=regexp.js.map |
export const VF_DM_PREFIX = 'dm_'; | ||
//# sourceMappingURL=runtime.js.map |
@@ -7,2 +7,1 @@ export const CUSTOM_SLOT_TYPE = 'Custom'; | ||
}; | ||
//# sourceMappingURL=slot.js.map |
@@ -18,2 +18,1 @@ import CryptoBase64 from 'crypto-js/enc-base64'; | ||
export default Base64; | ||
//# sourceMappingURL=base64.js.map |
@@ -28,2 +28,1 @@ const mapping = { | ||
export const hex2abc = (hex) => Array.prototype.map.call(hex.toLowerCase(), (char) => mapping[char]).join(''); | ||
//# sourceMappingURL=hex2abc.js.map |
export { default as Base64 } from './base64'; | ||
export { default as MurmurHash } from './murmurhash'; | ||
export { default as Synchronous } from './synchronous'; | ||
//# sourceMappingURL=index.js.map |
@@ -12,2 +12,1 @@ import { hex2abc } from "./hex2abc"; | ||
export default MurmurHash; | ||
//# sourceMappingURL=murmurhash.js.map |
@@ -39,2 +39,1 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
export default Synchronous; | ||
//# sourceMappingURL=synchronous.js.map |
@@ -7,2 +7,1 @@ export * from './constants'; | ||
export * from './utils'; | ||
//# sourceMappingURL=index.js.map |
@@ -18,6 +18,7 @@ export declare type Nullable<T> = T | null; | ||
}; | ||
export declare type NullableRecord<T extends object> = { | ||
export declare type PartialRecord<K extends PropertyKey, T> = Partial<Record<K, T>>; | ||
export declare type NullableRecord<T> = { | ||
[K in keyof T]: Nullable<T[K]>; | ||
}; | ||
export declare type NonNullishRecord<T extends object> = Required<{ | ||
export declare type NonNullishRecord<T> = Required<{ | ||
[K in keyof T]: NonNullable<T[K]>; | ||
@@ -24,0 +25,0 @@ }>; |
export {}; | ||
//# sourceMappingURL=types.js.map |
@@ -99,2 +99,1 @@ export const unique = (items) => Array.from(new Set(items)); | ||
export const inferUnion = (array) => array; | ||
//# sourceMappingURL=array.js.map |
const FORMAT = /^\w+(['+-.]\w+)*@\w+([.-]\w+)*\.\w+([.-]\w+)*$/; | ||
export const isValidEmail = (email) => !!email.match(FORMAT); | ||
export const getEmailDomain = (email) => email.slice(Math.max(0, email.lastIndexOf('@') + 1)); | ||
//# sourceMappingURL=emails.js.map |
@@ -52,2 +52,1 @@ export const isFunction = (value) => typeof value === 'function'; | ||
}; | ||
//# sourceMappingURL=functional.js.map |
@@ -31,2 +31,1 @@ import { cuid } from './id'; | ||
}; | ||
//# sourceMappingURL=generate.js.map |
@@ -16,2 +16,1 @@ import ObjectId from 'bson-objectid'; | ||
}; | ||
//# sourceMappingURL=id.js.map |
@@ -22,2 +22,1 @@ export * as array from './array'; | ||
export * from './variables'; | ||
//# sourceMappingURL=index.js.map |
@@ -140,2 +140,1 @@ import { LOWER_CASE_CUSTOM_SLOT_TYPE, SLOT_REGEXP, SPACE_REGEXP } from "../constants"; | ||
export const cleanVFIntentName = (intentName) => (intentName.startsWith('VF.') ? intentName.slice(3).toLowerCase() : intentName); | ||
//# sourceMappingURL=intent.js.map |
@@ -59,2 +59,1 @@ const getRegex = (variable) => new RegExp(variable, 'gi'); | ||
}; | ||
//# sourceMappingURL=mathjs.js.map |
@@ -71,2 +71,1 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
}; | ||
//# sourceMappingURL=normalized.js.map |
@@ -6,2 +6,1 @@ import numberToWords from 'number-to-words/src'; | ||
export const clamp = (value, min, max) => Math.max(Math.min(value, max), min); | ||
//# sourceMappingURL=number.js.map |
@@ -54,2 +54,1 @@ export const selectField = (field) => (obj) => obj[field]; | ||
export const filterEntries = pickBy; | ||
//# sourceMappingURL=common.js.map |
@@ -72,2 +72,1 @@ import { isObject } from './common'; | ||
}; | ||
//# sourceMappingURL=deepMap.js.map |
@@ -33,2 +33,1 @@ import _transform from 'lodash/transform'; | ||
}; | ||
//# sourceMappingURL=diff.js.map |
@@ -5,2 +5,1 @@ export * from './common'; | ||
export * from './keys'; | ||
//# sourceMappingURL=index.js.map |
@@ -53,2 +53,1 @@ import _cloneDeep from 'lodash/cloneDeep'; | ||
}; | ||
//# sourceMappingURL=keys.js.map |
@@ -20,2 +20,1 @@ export const delay = (timeout, value = true) => new Promise((resolve) => { | ||
}; | ||
//# sourceMappingURL=promise.js.map |
@@ -18,2 +18,1 @@ import actionCreatorFactory from 'typescript-fsa'; | ||
export const createChannel = (variables, build) => new Channel(variables, build); | ||
//# sourceMappingURL=protocol.js.map |
@@ -11,2 +11,1 @@ import _uniqBy from 'lodash/uniqBy'; | ||
export const getAllSamples = (inputs = []) => inputs.flatMap((input) => input.split(',')).filter((sample) => !!sample.trim()); | ||
//# sourceMappingURL=slot.js.map |
@@ -11,2 +11,1 @@ const TAGS_REGEXP = /(<([^>]+)>)/gi; | ||
}; | ||
//# sourceMappingURL=string.js.map |
@@ -64,2 +64,1 @@ import dayjs from 'dayjs'; | ||
.join(''); | ||
//# sourceMappingURL=time.js.map |
@@ -2030,2 +2030,1 @@ const timezoneGroups = [ | ||
export const TIMEZONES = getTimezones(); | ||
//# sourceMappingURL=timezones.js.map |
export const createTypeguardCreator = () => (values) => (value) => !!value && (Array.isArray(values) ? values.includes(value) : values === value); | ||
export const createTypedTypeguardCreator = () => (values) => (value) => Array.isArray(values) ? values.includes(value.type) : value.type === values; | ||
//# sourceMappingURL=typeguard.js.map |
@@ -57,2 +57,1 @@ import { READABLE_VARIABLE_REGEXP } from "../constants"; | ||
}; | ||
//# sourceMappingURL=variables.js.map |
{ | ||
"name": "@voiceflow/common", | ||
"description": "Junk drawer of utility functions", | ||
"version": "7.21.0", | ||
"version": "7.22.0", | ||
"author": "Voiceflow", | ||
@@ -79,3 +79,3 @@ "bugs": { | ||
}, | ||
"gitHead": "4f265e2cd11970e42817b7e40dbf7612a53ea385" | ||
"gitHead": "49b5d75cbcd6a88f79adc6bc7035d06d5365511f" | ||
} |
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
7219
253408
146