Socket
Socket
Sign inDemoInstall

@tramvai/safe-strings

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tramvai/safe-strings - npm Package Compare versions

Comparing version 0.5.12 to 0.6.0

1

lib/encode.d.ts

@@ -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

2

package.json
{
"name": "@tramvai/safe-strings",
"version": "0.5.12",
"version": "0.6.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/utils.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc