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.25.6 to 0.26.0

6

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

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

"peerDependencies": {
"typescript": ">=2.4.2 <2.6"
"typescript": ">=2.4.2 <2.7"
},

@@ -50,3 +50,3 @@ "devDependencies": {

"tslint": "^5.4.2",
"typescript": "~2.5.3"
"typescript": "^2.6.2"
},

@@ -53,0 +53,0 @@ "scripts": {

/// <amd-module name="tsickle/src/es5processor" />
import { ModulesManifest } from './modules_manifest';
import * as ts from './typescript';
export interface Es5ProcessorHost {

@@ -19,2 +20,4 @@ /**

es5Mode?: boolean;
/** expand "import 'foo';" to "import 'foo/index';" if it points to an index file. */
convertIndexImportShorthand?: boolean;
/**

@@ -24,2 +27,4 @@ * An additional prelude to insert in front of the emitted code, e.g. to import a shared library.

prelude?: string;
options: ts.CompilerOptions;
host: ts.ModuleResolutionHost;
}

@@ -32,2 +37,11 @@ /**

/**
* Convert from implicit `import {} from 'pkg'` to `import {} from 'pkg/index'.
* TypeScript supports the shorthand, but not all ES6 module loaders do.
* Workaround for https://github.com/Microsoft/TypeScript/issues/12597
*/
export declare function resolveIndexShorthand(host: {
options: ts.CompilerOptions;
host: ts.ModuleResolutionHost;
}, fileName: string, imported: string): string;
/**
* Converts TypeScript's JS+CommonJS output to Closure goog.module etc.

@@ -34,0 +48,0 @@ * For use as a postprocessing step *after* TypeScript emits JavaScript.

@@ -54,3 +54,3 @@ /**

function isClosureFileoverviewComment(text) {
var current = jsdoc.parseContents(text);
var current = jsdoc.parse(text);
return current !== null && current.tags.some(function (t) { return FILEOVERVIEW_COMMENT_M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3VyY2VGaWxlTm9kZShzZiwgdHMuY3JlYXRlTm9kZUFycmF5KFtzeW50aGV0aWNGaXJzdFN0YXRlbWVudCwgLi4uc2Yuc3RhdGVtZW50c10pKTtcbn1cbiJdfQ==

@@ -364,6 +364,10 @@ /**

var tag = { tagName: tagName, parameterName: parameterName, type: type, text: text };
if (optional)
// Note: a param can either be optional or a rest param; if we merged an
// optional and rest param together, prefer marking it as a rest param.
if (restParam) {
tag.restParam = true;
}
else if (optional) {
tag.optional = true;
if (restParam)
tag.restParam = true;
}
return tag;

@@ -374,2 +378,2 @@ var e_3, _a;

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNkb2MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvanNkb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVILHlDQUE0QztJQXNDNUM7Ozs7OztPQU1HO0lBQ0gsSUFBTSxvQkFBb0IsR0FBRyxJQUFJLEdBQUcsQ0FBQztRQUNuQyxVQUFVLEVBQU8sVUFBVTtRQUMzQixRQUFRLEVBQVMsdUJBQXVCO1FBQ3hDLE9BQU8sRUFBVSxVQUFVO1FBQzNCLGFBQWEsRUFBSSxXQUFXO1FBQzVCLFFBQVEsRUFBUyxZQUFZO1FBQzdCLE1BQU0sRUFBVyxNQUFNO1FBQ3ZCLFVBQVUsRUFBTyxTQUFTO1FBQzFCLGFBQWEsRUFBSSxNQUFNO1FBQ3ZCLFFBQVEsRUFBUyxRQUFRO1FBQ3pCLFNBQVMsRUFBUSxTQUFTO1FBQzFCLGNBQWMsRUFBRyxPQUFPO1FBQ3hCLGVBQWUsRUFBRSxtQkFBbUI7UUFDcEMsUUFBUSxFQUFTLElBQUk7UUFDckIsYUFBYSxFQUFJL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bmNlJyxcbiAgJ2VuaGFuY2VhYmxlJywgICAnZW51bScsXG4gICdleHBvcnQnLCAgICAgICAgJ2V4cG9zZScsXG4gICdleHRlbmRzJywgICAgICAgJ2V4dGVybnMnLFxuICAnZmlsZW92ZXJ2aWV3JywgICdmaW5hbCcsXG4gICdoYXNzb3lkZWxjYWxsJywgJ2hhc3NveWRlbHRlbXBsYXRlJyxcbiAgJ2hpZGRlbicsICAgICAgICAnaWQnLFxuICAnaWRHZW5lcmF0b3InLCAgICdpZ25vcmUnLFxuICAnaW1wbGVtZW50cycsICAgICdpbXBsaWNpdENhc3QnLFxuICAnaW5oZXJpdERvYycsICAgICdpbnRlcmZhY2UnLFxuICAnamFnZ2VySW5qZWN0JywgICdqYWdnZXJNb2R1bGUnLFxuICAnamFnZ2VyUHJvdmlkZScsICdqYWdnZXJQcm92aWRlUHJvbWlzZScsXG4gICdsZW5kcycsICAgICAgICAgJ2xpY2Vuc2UnLFxuICAnbGluaycsICAgICAgICAgICdtZWFuaW5nJyxcbiAgJ21vZGlmaWVzJywgICAgICAnbW9kTmFtZScsXG4gICdtb2RzJywgICAgICAgICAgJ25nSW5qZWN0JyxcbiAgJ25vYWxpYXMnLCAgICAgICAnbm9jb2xsYXBzZScsXG4gICdub2NvbXBpbGUnLCAgICAgJ25vc2lkZWVmZmVjdHMnLFxuICAnb3ZlcnJpZGUnLCAgICAgICdvd25lcicsXG4gICdwYWNrYWdlJywgICAgICAgJ3BhcmFtJyxcbiAgJ3BpbnRvbW9kdWxlJywgICAncG9seW1lckJlaGF2aW9yJyxcbiAgJ3ByZXNlcnZlJywgICAgICAncHJlc2VydmVUcnknLFxuICAncHJpdmF0ZScsICAgICAgICdwcm90ZWN0ZWQnLFxuICAncHVibGljJywgICAgICAgICdyZWNvcmQnLFxuICAncmVxdWlyZWNzcycsICAgICdyZXF1aXJlcycsXG4gICdyZXR1cm4nLCAgICAgICAgJ3JldHVybnMnLFxuICAnc2VlJywgICAgICAgICAgICdzdGFibGVJ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1xuICAgIHRocm93IG5ldyBFcnJvcihgY2Fubm90IG1lcmdlIGRpZmZlcmluZyB0YWdzOiAke0pTT04uc3RyaW5naWZ5KHRhZ3MpfWApO1xuICB9XG4gIGNvbnN0IHRhZ05hbWUgPSB0YWdOYW1lcy52YWx1ZXMoKS5uZXh0KCkudmFsdWU7XG4gIGNvbnN0IHBhcmFtZXRlck5hbWUgPVxuICAgICAgcGFyYW1ldGVyTmFtZXMuc2l6ZSA+IDAgPyBBcnJheS5mcm9tKHBhcmFtZXRlck5hbWVzKS5qb2luKCdfb3JfJykgOiB1bmRlZmluZWQ7XG4gIGNvbnN0IHR5cGUgPSB0eXBlcy5zaXplID4gMCA/IEFycmF5LmZyb20odHlwZXMpLmpvaW4oJ3wnKSA6IHVuZGVmaW5lZDtcbiAgY29uc3QgdGV4dCA9IHRleHRzLnNpemUgPiAwID8gQXJyYXkuZnJvbSh0ZXh0cykuam9pbignIC8gJykgOiB1bmRlZmluZWQ7XG4gIGNvbnN0IHRhZzogVGFnID0ge3RhZ05hbWUsIHBhcmFtZXRlck5hbWUsIHR5cGUsIHRleHR9O1xuICAvLyBOb3RlOiBhIHBhcmFtIGNhbiBlaXRoZXIgYmUgb3B0aW9uYWwgb3IgYSByZXN0IHBhcmFtOyBpZiB3ZSBtZXJnZWQgYW5cbiAgLy8gb3B0aW9uYWwgYW5kIHJlc3QgcGFyYW0gdG9nZXRoZXIsIHByZWZlciBtYXJraW5nIGl0IGFzIGEgcmVzdCBwYXJhbS5cbiAgaWYgKHJlc3RQYXJhbSkge1xuICAgIHRhZy5yZXN0UGFyYW0gPSB0cnVlO1xuICB9IGVsc2UgaWYgKG9wdGlvbmFsKSB7XG4gICAgdGFnLm9wdGlvbmFsID0gdHJ1ZTtcbiAgfVxuICByZXR1cm4gdGFnO1xufVxuIl19

@@ -133,2 +133,4 @@ #!/usr/bin/env node

logWarning: function (warning) { return console.error(tsickle.formatDiagnostics([warning])); },
options: options,
host: compilerHost,
};

@@ -182,2 +184,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O1xuICAgIGZzLndyaXRlRmlsZVN5bmMoc2V0dGluZ3MuZXh0ZXJuc1BhdGgsIHRzaWNrbGUuZ2V0R2VuZXJhdGVkRXh0ZXJucyhyZXN1bHQuZXh0ZXJucykpO1xuICB9XG4gIHJldHVybiAwO1xufVxuXG4vLyBDTEkgZW50cnkgcG9pbnRcbmlmIChyZXF1aXJlLm1haW4gPT09IG1vZHVsZSkge1xuICBwcm9jZXNzLmV4aXQobWFpbihwcm9jZXNzLmFyZ3Yuc3BsaWNlKDIpKSk7XG59XG4iXX0=
/// <amd-module name="tsickle/src/rewriter" />
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { SourceMapper } from './source_map_utils';

@@ -10,0 +3,0 @@ import * as ts from './typescript';

@@ -24,3 +24,3 @@ /**

else if (typeof define === "function" && define.amd) {
define("tsickle/src/rewriter", ["require", "exports", "tsickle/src/source_map_utils", "tsickle/src/typescript"], factory);
define("tsickle/src/rewriter", ["require", "exports", "tsickle/src/fileoverview_comment_transformer", "tsickle/src/source_map_utils", "tsickle/src/typescript"], factory);
}

@@ -30,2 +30,3 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
var fileoverview_comment_transformer_1 = require("tsickle/src/fileoverview_comment_transformer");
var source_map_utils_1 = require("tsickle/src/source_map_utils");

@@ -65,5 +66,26 @@ var ts = require("tsickle/src/typescript");

if (prefix) {
// Insert prefix after any leading trivia so that @fileoverview comments do not get broken.
var firstCode = this.file.getStart();
out = out.substring(0, firstCode) + prefix + out.substring(firstCode);
// Insert prefix after any leading @fileoverview comments, so they still come first in the
// file. This must not use file.getStart() (comment position in the input file), but rahter
// check comments in the new output, as those (in particular for comments) are unrelated.
var insertionIdx = 0;
try {
for (var _a = __values(ts.getLeadingCommentRanges(out, 0) || []), _b = _a.next(); !_b.done; _b = _a.next()) {
var cr = _b.value;
if (fileoverview_comment_transformer_1.isClosureFileoverviewComment(out.substring(cr.pos, cr.end))) {
insertionIdx = cr.end;
// Include space (in particular line breaks) after a @fileoverview comment; without the
// space seperating it, TypeScript might elide the emit.
while (insertionIdx < out.length && out[insertionIdx].match(/\s/))
insertionIdx++;
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
}
finally { if (e_1) throw e_1.error; }
}
out = out.substring(0, insertionIdx) + prefix + out.substring(insertionIdx);
this.sourceMapper.shiftByOffset(prefix.length);

@@ -75,2 +97,3 @@ }

};
var e_1, _c;
};

@@ -194,3 +217,3 @@ /**

}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {

@@ -200,6 +223,6 @@ try {

}
finally { if (e_1) throw e_1.error; }
finally { if (e_2) throw e_2.error; }
}
this.position.position += str.length;
var e_1, _a;
var e_2, _a;
};

@@ -264,2 +287,2 @@ /** Removes comment metacharacters from a string, to make it safe to embed in a comment. */

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

@@ -1,1 +0,1 @@

{"compilerOptions": {"target": "es5", "downlevelIteration": true, "skipDefaultLibCheck": true, "moduleResolution": "node", "outDir": "../../../../bazel-out/darwin-fastbuild/bin", "rootDir": "../../../..", "rootDirs": ["../../../..", "../../../../bazel-out/darwin-fastbuild/genfiles", "../../../../bazel-out/darwin-fastbuild/bin"], "baseUrl": "../../../..", "paths": {"*": ["./*", "bazel-out/darwin-fastbuild/genfiles/*", "bazel-out/darwin-fastbuild/bin/*", "node_modules/*"], "tsickle/*": ["./*", "bazel-out/darwin-fastbuild/genfiles/*", "bazel-out/darwin-fastbuild/bin/*"]}, "preserveConstEnums": false, "experimentalDecorators": true, "emitDecoratorMetadata": true, "jsx": "react", "jsxFactory": "React.createElement", "noEmitOnError": false, "declaration": true, "declarationDir": "../../../../bazel-out/darwin-fastbuild/bin", "stripInternal": true, "inlineSourceMap": true, "inlineSources": true, "sourceMap": false, "typeRoots": ["../../../../node_modules/@types"], "module": "umd"}, "bazelOptions": {"workspaceName": "tsickle", "target": "//src:src", "tsickle": false, "tsickleGenerateExterns": true, "tsickleExternsPath": "", "untyped": true, "typeBlackListPaths": [], "es5Mode": true, "manifest": "bazel-out/darwin-fastbuild/bin/src/src.es5.MF", "compilationTargetSrc": ["src/class_decorator_downlevel_transformer.ts", "src/cli_support.ts", "src/decorator-annotator.ts", "src/decorators.ts", "src/es5processor.ts", "src/fileoverview_comment_transformer.ts", "src/jsdoc.ts", "src/main.ts", "src/modules_manifest.ts", "src/rewriter.ts", "src/source_map_utils.ts", "src/transformer_sourcemap.ts", "src/transformer_util.ts", "src/tsickle.ts", "src/type-translator.ts", "src/typescript.ts", "src/util.ts", "bazel-out/darwin-fastbuild/genfiles/src/typescript-2.4.d.ts"], "addDtsClutzAliases": false, "expectedDiagnostics": [], "allowedStrictDeps": ["src/class_decorator_downlevel_transformer.ts", "src/cli_support.ts", "src/decorator-annotator.ts", "src/decorators.ts", "src/es5processor.ts", "src/fileoverview_comment_transformer.ts", "src/jsdoc.ts", "src/main.ts", "src/modules_manifest.ts", "src/rewriter.ts", "src/source_map_utils.ts", "src/transformer_sourcemap.ts", "src/transformer_util.ts", "src/tsickle.ts", "src/type-translator.ts", "src/typescript.ts", "src/util.ts", "bazel-out/darwin-fastbuild/genfiles/src/typescript-2.4.d.ts"], "nodeModulesPrefix": "node_modules"}, "files": ["../../../../bazel-out/darwin-fastbuild/genfiles/src/typescript-2.4.d.ts", "../../../../src/class_decorator_downlevel_transformer.ts", "../../../../src/cli_support.ts", "../../../../src/decorator-annotator.ts", "../../../../src/decorators.ts", "../../../../src/es5processor.ts", "../../../../src/fileoverview_comment_transformer.ts", "../../../../src/jsdoc.ts", "../../../../src/main.ts", "../../../../src/modules_manifest.ts", "../../../../src/rewriter.ts", "../../../../src/source_map_utils.ts", "../../../../src/transformer_sourcemap.ts", "../../../../src/transformer_util.ts", "../../../../src/tsickle.ts", "../../../../src/type-translator.ts", "../../../../src/typescript.ts", "../../../../src/util.ts"], "compileOnSave": false, "extends": "../../../../tsconfig"}
{"compilerOptions": {"target": "es5", "downlevelIteration": true, "skipDefaultLibCheck": true, "moduleResolution": "node", "outDir": "../../../../bazel-out/k8-fastbuild/bin", "rootDir": "../../../..", "rootDirs": ["../../../..", "../../../../bazel-out/k8-fastbuild/genfiles", "../../../../bazel-out/k8-fastbuild/bin"], "baseUrl": "../../../..", "paths": {"*": ["./*", "bazel-out/k8-fastbuild/genfiles/*", "bazel-out/k8-fastbuild/bin/*", "node_modules/*"], "tsickle/*": ["./*", "bazel-out/k8-fastbuild/genfiles/*", "bazel-out/k8-fastbuild/bin/*"]}, "preserveConstEnums": false, "experimentalDecorators": true, "emitDecoratorMetadata": true, "jsx": "react", "jsxFactory": "React.createElement", "noEmitOnError": false, "declaration": true, "declarationDir": "../../../../bazel-out/k8-fastbuild/bin", "stripInternal": true, "inlineSourceMap": true, "inlineSources": true, "sourceMap": false, "typeRoots": ["../../../../node_modules/@types"], "module": "umd"}, "bazelOptions": {"workspaceName": "tsickle", "target": "//src:src", "tsickle": false, "tsickleGenerateExterns": true, "tsickleExternsPath": "", "untyped": true, "typeBlackListPaths": [], "es5Mode": true, "manifest": "bazel-out/k8-fastbuild/bin/src/src.es5.MF", "compilationTargetSrc": ["src/class_decorator_downlevel_transformer.ts", "src/cli_support.ts", "src/decorator-annotator.ts", "src/decorators.ts", "src/es5processor.ts", "src/fileoverview_comment_transformer.ts", "src/jsdoc.ts", "src/main.ts", "src/modules_manifest.ts", "src/rewriter.ts", "src/source_map_utils.ts", "src/transformer_sourcemap.ts", "src/transformer_util.ts", "src/tsickle.ts", "src/type-translator.ts", "src/typescript.ts", "src/util.ts", "bazel-out/k8-fastbuild/genfiles/src/typescript-2.4.d.ts"], "addDtsClutzAliases": false, "expectedDiagnostics": [], "allowedStrictDeps": ["src/class_decorator_downlevel_transformer.ts", "src/cli_support.ts", "src/decorator-annotator.ts", "src/decorators.ts", "src/es5processor.ts", "src/fileoverview_comment_transformer.ts", "src/jsdoc.ts", "src/main.ts", "src/modules_manifest.ts", "src/rewriter.ts", "src/source_map_utils.ts", "src/transformer_sourcemap.ts", "src/transformer_util.ts", "src/tsickle.ts", "src/type-translator.ts", "src/typescript.ts", "src/util.ts", "bazel-out/k8-fastbuild/genfiles/src/typescript-2.4.d.ts"], "nodeModulesPrefix": "node_modules"}, "files": ["../../../../bazel-out/k8-fastbuild/genfiles/src/typescript-2.4.d.ts", "../../../../src/class_decorator_downlevel_transformer.ts", "../../../../src/cli_support.ts", "../../../../src/decorator-annotator.ts", "../../../../src/decorators.ts", "../../../../src/es5processor.ts", "../../../../src/fileoverview_comment_transformer.ts", "../../../../src/jsdoc.ts", "../../../../src/main.ts", "../../../../src/modules_manifest.ts", "../../../../src/rewriter.ts", "../../../../src/source_map_utils.ts", "../../../../src/transformer_sourcemap.ts", "../../../../src/transformer_util.ts", "../../../../src/tsickle.ts", "../../../../src/type-translator.ts", "../../../../src/typescript.ts", "../../../../src/util.ts"], "compileOnSave": false, "extends": "../../../../tsconfig"}

@@ -54,6 +54,29 @@ /**

// and it leads to errors with `extends` cases.
if (originalNode &&
(isLiteralKind(node.kind) || node.kind === ts.SyntaxKind.Identifier ||
transformer_util_1.isTypeNodeKind(node.kind) || node.kind === ts.SyntaxKind.IndexSignature)) {
return originalNode;
// - imports/exports: as TypeScript will only attempt to elide type only
// imports if the new node is identical to the original node.
if (originalNode) {
if (isLiteralKind(node.kind) || node.kind === ts.SyntaxKind.Identifier ||
transformer_util_1.isTypeNodeKind(node.kind) || node.kind === ts.SyntaxKind.IndexSignature) {
return originalNode;
}
if (node.kind === ts.SyntaxKind.ImportDeclaration ||
node.kind === ts.SyntaxKind.ImportEqualsDeclaration ||
node.kind === ts.SyntaxKind.ExportAssignment) {
return originalNode;
}
if (ts.isExportDeclaration(node)) {
// Return the original nodes for export declarations, unless they were expanded from an
// export * to specific exported symbols.
var originalExport = originalNode;
if (!node.moduleSpecifier) {
// export {a, b, c};
return originalNode;
}
if (!!originalExport.exportClause === !!node.exportClause) {
// This already was exported with symbols (export {...}) or was not expanded.
return originalNode;
}
// Rewrote export * -> export {...}, the export declaration must be emitted in the updated
// form.
}
}

@@ -177,2 +200,2 @@ node = ts.visitEachChild(node, visitNode, context);

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

@@ -39,6 +39,6 @@ /// <amd-module name="tsickle/src/tsickle" />

export declare let closureExternsBlacklist: string[];
export declare function formatDiagnostics(diags: ts.Diagnostic[]): string;
export declare function formatDiagnostics(diags: ReadonlyArray<ts.Diagnostic>): string;
/** Returns a fileName:line:column string for the given position in the file. */
export declare function formatLocation(sf: ts.SourceFile, start: number | undefined): string;
export declare function annotate(typeChecker: ts.TypeChecker, file: ts.SourceFile, host: AnnotatorHost, tsHost?: ts.ModuleResolutionHost, tsOpts?: ts.CompilerOptions, sourceMapper?: SourceMapper): {
export declare function annotate(typeChecker: ts.TypeChecker, file: ts.SourceFile, host: AnnotatorHost, tsHost: ts.ModuleResolutionHost, tsOpts: ts.CompilerOptions, sourceMapper?: SourceMapper): {
output: string;

@@ -45,0 +45,0 @@ diagnostics: ts.Diagnostic[];

@@ -17,4 +17,4 @@ /// <amd-module name="tsickle/src/typescript" />

import * as ts from 'typescript';
export { __String, addSyntheticTrailingComment, AssertionExpression, Block, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createCompilerHost, createIdentifier, createKeywordTypeNode, createNodeArray, createNotEmittedStatement, createObjectLiteral, createProgram, createProperty, createPropertyAssignment, createPropertySignature, createSourceFile, createToken, createTypeLiteralNode, createTypeReferenceNode, CustomTransformers, Declaration, DeclarationStatement, DeclarationWithTypeParameters, Decorator, Diagnostic, DiagnosticCategory, ElementAccessExpression, EmitFlags, EmitResult, EntityName, EnumDeclaration, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, flattenDiagnosticMessageText, forEachChild, FunctionDeclaration, FunctionLikeDeclaration, GetAccessorDeclaration, getCombinedModifierFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, Identifier, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, InterfaceDeclaration, isIdentifier, MethodDeclaration, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, Node, NodeArray, NodeFlags, NonNullExpression, NotEmittedStatement, ObjectLiteralElementLike, ObjectLiteralExpression, ParameterDeclaration, parseCommandLine, parseJsonConfigFileContent, Program, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertyName, PropertySignature, readConfigFile, resolveModuleName, ScriptTarget, SetAccessorDeclaration, setEmitFlags, setOriginalNode, setSourceMapRange, setSyntheticLeadingComments, setSyntheticTrailingComments, setTextRange, SignatureDeclaration, SourceFile, Statement, StringLiteral, Symbol, SymbolFlags, SyntaxKind, SynthesizedComment, sys, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeReference, UnionType, updateBlock, VariableDeclaration, VariableStatement, visitEachChild, visitLexicalEnvironment, Visitor, WriteFileCallback } from 'typescript';
export { __String, addSyntheticTrailingComment, AssertionExpression, Block, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createCompilerHost, createIdentifier, createKeywordTypeNode, createNodeArray, createNotEmittedStatement, createObjectLiteral, createProgram, createProperty, createPropertyAssignment, createPropertySignature, createSourceFile, createToken, createTypeLiteralNode, createTypeReferenceNode, CustomTransformers, Declaration, DeclarationStatement, DeclarationWithTypeParameters, Decorator, Diagnostic, DiagnosticCategory, ElementAccessExpression, EmitFlags, EmitResult, EntityName, EnumDeclaration, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, flattenDiagnosticMessageText, forEachChild, FunctionDeclaration, FunctionLikeDeclaration, GetAccessorDeclaration, getCombinedModifierFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, Identifier, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, InterfaceDeclaration, isExportDeclaration, isIdentifier, MethodDeclaration, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, Node, NodeArray, NodeFlags, NonNullExpression, NotEmittedStatement, ObjectLiteralElementLike, ObjectLiteralExpression, ParameterDeclaration, parseCommandLine, parseJsonConfigFileContent, Program, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertyName, PropertySignature, readConfigFile, resolveModuleName, ScriptTarget, SetAccessorDeclaration, setEmitFlags, setOriginalNode, setSourceMapRange, setSyntheticLeadingComments, setSyntheticTrailingComments, setTextRange, SignatureDeclaration, SourceFile, Statement, StringLiteral, Symbol, SymbolFlags, SyntaxKind, SynthesizedComment, sys, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeReference, UnionType, updateBlock, VariableDeclaration, VariableStatement, visitEachChild, visitLexicalEnvironment, Visitor, WriteFileCallback } from 'typescript';
export declare function getEmitFlags(node: ts.Node): ts.EmitFlags | undefined;
export declare let updateProperty: typeof ts.updateProperty;

@@ -75,2 +75,3 @@ /**

exports.getTrailingCommentRanges = typescript_1.getTrailingCommentRanges;
exports.isExportDeclaration = typescript_1.isExportD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pO1xuICB9XG59XG5cbi8qKlxuICogUmV0dXJucyB0aGUgaW5wdXQgc3RyaW5nIHdpdGggbGluZSBlbmRpbmdzIG5vcm1hbGl6ZWQgdG8gJ1xcbicuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBub3JtYWxpemVMaW5lRW5kaW5ncyhpbnB1dDogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGlucHV0LnJlcGxhY2UoL1xcclxcbi9nLCAnXFxuJyk7XG59XG5cbi8qKiBAcmV0dXJuIHRydWUgaWYgbm9kZSBoYXMgdGhlIHNwZWNpZmllZCBtb2RpZmllciBmbGFnIHNldC4gKi9cbmV4cG9ydCBmdW5jdGlvbiBoYXNNb2RpZmllckZsYWcobm9kZTogdHMuTm9kZSwgZmxhZzogdHMuTW9kaWZpZXJGbGFncyk6IGJvb2xlYW4ge1xuICByZXR1cm4gKHRzLmdldENvbWJpbmVkTW9kaWZpZXJGbGFncyhub2RlKSAmIGZsYWcpICE9PSAwO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNEdHNGaWxlTmFtZShmaWxlTmFtZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gIHJldHVybiAvXFwuZFxcLnRzJC8udGVzdChmaWxlTmFtZSk7XG59XG4iXX0=

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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