Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsickle

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsickle - npm Package Compare versions

Comparing version 0.27.1 to 0.27.2

5

package.json
{
"name": "tsickle",
"version": "0.27.1",
"version": "0.27.2",
"description": "Transpile TypeScript code to JavaScript with Closure annotations.",

@@ -17,3 +17,3 @@ "main": "src/tsickle.js",

"mkdirp": "^0.5.1",
"source-map": "^0.5.6",
"source-map": "^0.6.0",
"source-map-support": "^0.5.0"

@@ -34,3 +34,2 @@ },

"@types/node": "6.0.96",
"@types/source-map": "0.5.1",
"@types/source-map-support": "0.4.0",

@@ -37,0 +36,0 @@ "chai": "4.1.2",

23

src/source_map_utils.d.ts

@@ -9,4 +9,25 @@ /// <amd-module name="tsickle/src/source_map_utils" />

*/
import { BasicSourceMapConsumer, RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map';
import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map';
import * as ts from './typescript';
/**
* This interface was defined in @types/source-map but is absent from the typings
* distributed in the source-map package.
* Copied from https://unpkg.com/@types/source-map@0.5.2/index.d.ts
* see https://github.com/angular/tsickle/issues/750
*/
export interface BasicSourceMapConsumer extends SourceMapConsumer {
file: string;
sourceRoot: string;
sources: string[];
sourcesContent: string[];
}
/**
* The toJSON method is introduced in
* https://github.com/mozilla/source-map/commit/7c06ac83dd6d75e65f71727184a2d8630a15bf58#diff-7945f6bb445d956794564e098ef20bb3
* However there is a breaking change in 0.7.
* see https://github.com/angular/tsickle/issues/750
*/
export declare type SourceMapGeneratorToJson = SourceMapGenerator & {
toJSON(): RawSourceMap;
};
export declare function containsInlineSourceMap(source: string): boolean;

@@ -13,0 +34,0 @@ export declare function getInlineSourceMapCount(source: string): number;

@@ -108,2 +108,6 @@ /**

// the string for a RawSourceMap, so we always get a BasicSourceMapConsumer
//
// Note, the typings distributed with the library are missing this constructor overload,
// so we must type it as any, see https://github.com/angular/tsickle/issues/750
// tslint:disable-next-line no-any
return new source_map_1.SourceMapConsumer(sourceMapText);

@@ -121,2 +125,2 @@ }

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlX21hcF91dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zb3VyY2VfbWFwX3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7O0lBRUgseUNBQXVHO0lBR3ZHOzs7O09BSUc7SUFDSDtRQUNFLE1BQU0sQ0FBQyxJQUFJLE1BQU0sQ0FBQywwREFBMEQsRUFBRSxJQUFJLENBQUMsQ0FBQztJQUN0RixDQUFDO0lBRUQsaUNBQXdDLE1BQWM7UUFDcEQsTUFBTSxDQUFDLHVCQUF1QixDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM3QyxDQUFDO0lBRkQsMERBRUM7SUFFRCxpQ0FBd0MsTUFBYztRQUNwRCxJQUFNLEtBQUssR0FBRyxNQUFNLENBQUMsS0FBSyxDQUFDLHVCQUF1QixFQUFFLENBQUMsQ0FBQztRQUN0RCxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDbEMsQ0FBQztJQUhELDBEQUdDO0lBRUQsZ0NBQXVDLE1BQWM7UUFDbkQsSUFBTSxvQkFBb0IsR0FBRyx1QkFBdUIsRUFBRSxDQUFDO1FBQ3ZELElBQUksY0FBYyxHQUF5QixJQUFJLENBQUM7UUFDaEQsSUFBSSxNQUFNLEdBQXlCLElBQUksQ0FBQztRQUN4Qyw0REFBNEQ7UUFDNUQsNERBQTREO1FBQzVELD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XIpOiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgTk9PUF9TT1VSQ0VfTUFQUEVSOiBTb3VyY2VNYXBwZXIgPSB7XG4gIHNoaWZ0QnlPZmZzZXQoKSB7Lyogbm8tb3AgKi99LFxuICBhZGRNYXBwaW5nKCkgey8qIG5vLW9wICovfSxcbn07XG4iXX0=
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