@deepkit/core
Advanced tools
Comparing version 1.0.1-alpha.89 to 1.0.1-alpha.92
@@ -340,4 +340,8 @@ /** | ||
export declare function getCurrentFileName(): string; | ||
/** | ||
* Escape special characters in a regex string, so it can be used as a literal string. | ||
*/ | ||
export declare function escapeRegExp(string: string): string; | ||
export declare type __ΩClassType = any[]; | ||
export declare type __ΩAbstractClassType = any[]; | ||
export declare type __ΩExtractClassType = any[]; |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.getObjectKeysSize = exports.humanBytes = exports.deletePathValue = exports.setPathValue = exports.getPathValue = exports.time = exports.collectForMicrotask = exports.mergeStack = exports.createStack = exports.mergePromiseStack = exports.asyncOperation = exports.appendObject = exports.prependObjectKeys = exports.average = exports.last = exports.first = exports.lastKey = exports.firstKey = exports.size = exports.empty = exports.copy = exports.sleep = exports.indexOf = exports.isString = exports.isInteger = exports.isNumeric = exports.isNumber = exports.isSet = exports.isUndefined = exports.isNull = exports.isArray = exports.isObject = exports.isClass = exports.isPromise = exports.isAsyncFunction = exports.isFunction = exports.prettyPrintObject = exports.changeClass = exports.stringifyValueWithType = exports.isClassInstance = exports.getClassTypeFromInstance = exports.isPlainObject = exports.identifyType = exports.applyDefaults = exports.getClassPropertyName = exports.getClassName = exports.__ΩExtractClassType = exports.__ΩAbstractClassType = exports.__ΩClassType = exports.CustomError = void 0; | ||
exports.getCurrentFileName = exports.isIterable = exports.createDynamicClass = exports.inDebugMode = exports.getParentClass = exports.isPrototypeOfBase = exports.isConstructable = void 0; | ||
exports.escapeRegExp = exports.getCurrentFileName = exports.isIterable = exports.createDynamicClass = exports.inDebugMode = exports.getParentClass = exports.isPrototypeOfBase = exports.isConstructable = void 0; | ||
function __assignType(fn, args) { | ||
@@ -776,2 +776,10 @@ fn.__type = args; | ||
getCurrentFileName.__type = ['getCurrentFileName', 'P&/!']; | ||
/** | ||
* Escape special characters in a regex string, so it can be used as a literal string. | ||
*/ | ||
function escapeRegExp(string) { | ||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string | ||
} | ||
exports.escapeRegExp = escapeRegExp; | ||
escapeRegExp.__type = ['string', 'escapeRegExp', 'P&2!&/"']; | ||
//# sourceMappingURL=core.js.map |
@@ -340,4 +340,8 @@ /** | ||
export declare function getCurrentFileName(): string; | ||
/** | ||
* Escape special characters in a regex string, so it can be used as a literal string. | ||
*/ | ||
export declare function escapeRegExp(string: string): string; | ||
export declare type __ΩClassType = any[]; | ||
export declare type __ΩAbstractClassType = any[]; | ||
export declare type __ΩExtractClassType = any[]; |
@@ -715,2 +715,9 @@ function __assignType(fn, args) { | ||
getCurrentFileName.__type = ['getCurrentFileName', 'P&/!']; | ||
/** | ||
* Escape special characters in a regex string, so it can be used as a literal string. | ||
*/ | ||
export function escapeRegExp(string) { | ||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string | ||
} | ||
escapeRegExp.__type = ['string', 'escapeRegExp', 'P&2!&/"']; | ||
//# sourceMappingURL=core.js.map |
{ | ||
"name": "@deepkit/core", | ||
"version": "1.0.1-alpha.89", | ||
"version": "1.0.1-alpha.92", | ||
"description": "Deepkit core library", | ||
@@ -44,3 +44,3 @@ "type": "commonjs", | ||
}, | ||
"gitHead": "ade205cedac5e2589404c0729554c25ae132627b" | ||
"gitHead": "213c7deb1a8792cc64dc89d4a06c4db3d891b808" | ||
} |
@@ -713,1 +713,8 @@ /* | ||
} | ||
/** | ||
* Escape special characters in a regex string, so it can be used as a literal string. | ||
*/ | ||
export function escapeRegExp(string: string): string { | ||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string | ||
} |
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
414258
6678