@polymer/gen-typescript-declarations
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -10,2 +10,6 @@ # Changelog | ||
## [1.6.2] - 2019-06-19 | ||
* Names in `excludeIdentifiers` will now also be removed from `import` | ||
statements. | ||
## [1.6.1] - 2019-01-18 | ||
@@ -12,0 +16,0 @@ * Fix missing `source-map-support` dependency. |
@@ -882,2 +882,5 @@ "use strict"; | ||
} | ||
if (this.excludeIdentifiers.has(identifier)) { | ||
return false; | ||
} | ||
const resolved = es_modules_1.resolveImportExportFeature(fromFeature, identifier, this.analyzerDoc); | ||
@@ -884,0 +887,0 @@ return resolved !== undefined && resolved.feature !== undefined && |
{ | ||
"name": "@polymer/gen-typescript-declarations", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Generate TypeScript type declarations for Polymer components.", | ||
@@ -38,3 +38,3 @@ "homepage": "https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations", | ||
"typescript": "^3.0.1", | ||
"vscode-uri": "^1.0.3" | ||
"vscode-uri": "=1.0.6" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
@@ -380,3 +380,3 @@ /** | ||
function getImportedIdentifiers(tsDoc: ts.Document): Set<string> { | ||
const identifiers = new Set(); | ||
const identifiers = new Set<string>(); | ||
for (const member of tsDoc.members) { | ||
@@ -1057,2 +1057,5 @@ if (member.kind === 'import') { | ||
} | ||
if (this.excludeIdentifiers.has(identifier)) { | ||
return false; | ||
} | ||
const resolved = | ||
@@ -1059,0 +1062,0 @@ resolveImportExportFeature(fromFeature, identifier, this.analyzerDoc); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
297846
48
5735
0
- Removedvscode-uri@1.0.8(transitive)
Updatedvscode-uri@=1.0.6