@tramvai/safe-strings
Advanced tools
Comparing version 0.5.12 to 0.6.0
@@ -8,1 +8,2 @@ /** | ||
export declare function encode(str: string, entities: RegExp, encodeMap: Record<number, string>): string; | ||
//# sourceMappingURL=encode.d.ts.map |
@@ -5,1 +5,2 @@ /** | ||
export declare function encodeForHTMLContext(str?: string): string; | ||
//# sourceMappingURL=encodeForHTMLContext.d.ts.map |
@@ -5,1 +5,2 @@ /** | ||
export declare function encodeForJSContext(str?: string): string; | ||
//# sourceMappingURL=encodeForJSContext.d.ts.map |
@@ -11,1 +11,2 @@ export type AnyError = Error & { | ||
export declare function deserializeError(serializedError: SerializedError): AnyError; | ||
//# sourceMappingURL=error.d.ts.map |
@@ -5,1 +5,2 @@ /** | ||
export declare const removeXss: (referrer?: string) => string; | ||
//# sourceMappingURL=removeXss.d.ts.map |
export declare const safeParseJSON: (str: string, defaultValue?: null) => any; | ||
//# sourceMappingURL=safeParseJSON.d.ts.map |
@@ -5,1 +5,2 @@ /** | ||
export declare const safeStringify: (json: any) => string; | ||
//# sourceMappingURL=safeStringify.d.ts.map |
export declare const safeStringifyJSON: typeof JSON.stringify; | ||
//# sourceMappingURL=safeStringifyJSON.d.ts.map |
@@ -9,1 +9,2 @@ export * from './safeStringify'; | ||
export * from './error'; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@tramvai/safe-strings", | ||
"version": "0.5.12", | ||
"version": "0.6.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/utils.js", |
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
15666