@openlayers/doctrine
Advanced tools
+10
-1
@@ -341,6 +341,13 @@ /* | ||
| // check for typeof type | ||
| var typeofStart = 'typeof '; | ||
| if (source.slice(index - 1, index - 1 + typeofStart.length) === typeofStart) { | ||
| index += typeofStart.length - 1; | ||
| value += typeofStart.slice(1) + advance(); | ||
| } | ||
| // check for import("./path/to/module").Foo type | ||
| var importStart = 'import('; | ||
| if (source.slice(index - 1, index - 1 + importStart.length) === importStart) { | ||
| value = importStart; | ||
| value += importStart.slice(1); | ||
| index += importStart.length - 1; | ||
@@ -512,2 +519,4 @@ // scan until closing ) | ||
| // import("./some/module").Type | ||
| // typeof namespace.module.MyClass | ||
| // typeof import("./some/module").Type | ||
| // | ||
@@ -514,0 +523,0 @@ // this reduced 1 token TK_NAME |
+1
-1
@@ -6,3 +6,3 @@ { | ||
| "main": "lib/doctrine.js", | ||
| "version": "2.1.0", | ||
| "version": "2.2.0", | ||
| "engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.10.0" |
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
107052
0.35%1967
0.41%1
Infinity%