New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-runtime

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-runtime - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

5

package.json
{
"name": "ts-runtime",
"version": "0.1.15",
"version": "0.1.16",
"description": "Runtime type checks for TypeScript",

@@ -17,3 +17,4 @@ "main": "index.js",

"build": "./node_modules/.bin/tsc --rootDir src --outDir dist --module CommonJS --target es6 --skipLibCheck && cp package.json dist/package.json && cp README.md dist/README.md && cp LICENSE dist/LICENSE",
"build:docs": "yarn build:docs:lib && node_modules/.bin/webpack --config webpack.docs.config.js",
"build:docs": "yarn build:docs:lib && yarn build:docs:playground",
"build:docs:playground": "node_modules/.bin/rimraf docs/*worker.js* && node_modules/.bin/webpack --config webpack.docs.config.js",
"build:docs:lib": "node_modules/.bin/webpack --config webpack.lib.config.js",

@@ -20,0 +21,0 @@ "build:tsr": "ts-node ./src/bin/index src/index src/lib/index src/bin/index src/bin/process --moduleAlias --compilerOptions '{\"outDir\": \"dist-tsr\", \"strictNullChecks\": false, \"moduleResolution\": \"Node\", \"module\": \"commonjs\", \"target\": \"ES2015\", \"lib\": [\"ESNext\"]}'",

12

transform.js

@@ -256,7 +256,9 @@ "use strict";

if (log) {
console.error(ts.formatDiagnostics(diagnostics, {
getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
getNewLine: () => ts.sys.newLine,
getCanonicalFileName: (f) => f
}));
for (let diag of diagnostics) {
console.error(ts.formatDiagnostics([diag], {
getCurrentDirectory: () => '',
getNewLine: () => '\n',
getCanonicalFileName: (f) => f
}));
}
}

@@ -263,0 +265,0 @@ return false;

@@ -68,7 +68,9 @@ "use strict";

if (diagnostics.length > 0) {
console.error(ts.formatDiagnostics(diagnostics, {
getCurrentDirectory: () => '',
getNewLine: () => '\n',
getCanonicalFileName: (f) => f
}));
for (let diag of diagnostics) {
console.error(ts.formatDiagnostics([diag], {
getCurrentDirectory: () => '',
getNewLine: () => '\n',
getCanonicalFileName: (f) => f
}));
}
}

@@ -75,0 +77,0 @@ scanner = new scanner_1.Scanner(program, options);

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