Update to version #0.5.2 - The dynamicRemove() rollup is not removing methods with default arguments or is using the spread operator #16 and - _getBaseFuncs() usage of _getObjProto() is causing a long running script (it's broken) when running Internet explorer in 7/8 mode. #19 (#17)

* The dynamicRemove() rollup is not removing methods with default arguments or is using the spread operator #16

* _getBaseFuncs() usage of _getObjProto() is causing a long running script (it's broken) when running Internet explorer in 7/8 mode. #19
- Update Version #0.5.2

Co-authored-by: Nev Wylie <newylie@microsoft.com>
This commit is contained in:
Nev 2020-03-24 11:24:18 -07:00 коммит произвёл GitHub
Родитель ccca05aeac
Коммит 2594e3bbc9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
14 изменённых файлов: 469 добавлений и 378 удалений

200
common/config/rush/npm-shrinkwrap.json сгенерированный
Просмотреть файл

@ -3,14 +3,24 @@
"version": "0.0.0",
"dependencies": {
"@babel/code-frame": {
"version": "7.5.5",
"version": "7.8.3",
"from": "@babel/code-frame@^7.0.0",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz"
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz"
},
"@babel/helper-validator-identifier": {
"version": "7.9.0",
"from": "@babel/helper-validator-identifier@^7.9.0",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz"
},
"@babel/highlight": {
"version": "7.5.0",
"from": "@babel/highlight@^7.0.0",
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz"
"version": "7.9.0",
"from": "@babel/highlight@^7.8.3",
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz"
},
"@microsoft/applicationinsights-rollup-es3": {
"version": "1.1.1",
"from": "@microsoft/applicationinsights-rollup-es3@^1.0.0",
"resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-rollup-es3/-/applicationinsights-rollup-es3-1.1.1.tgz"
},
"@nodelib/fs.scandir": {
"version": "2.1.3",
@ -38,9 +48,9 @@
"resolved": "file:projects\\dynamicproto-rollup.tgz"
},
"@types/estree": {
"version": "0.0.42",
"version": "0.0.44",
"from": "@types/estree@*",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.42.tgz"
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.44.tgz"
},
"@types/events": {
"version": "3.0.0",
@ -48,9 +58,9 @@
"resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz"
},
"@types/fs-extra": {
"version": "8.0.1",
"from": "@types/fs-extra@^8.0.0",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.0.1.tgz"
"version": "8.1.0",
"from": "@types/fs-extra@^8.0.1",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.0.tgz"
},
"@types/glob": {
"version": "7.1.1",
@ -63,9 +73,9 @@
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz"
},
"@types/node": {
"version": "13.1.6",
"version": "13.9.3",
"from": "@types/node@*",
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.1.6.tgz"
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.9.3.tgz"
},
"@types/resolve": {
"version": "0.0.8",
@ -78,14 +88,14 @@
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz"
},
"acorn": {
"version": "7.1.0",
"version": "7.1.1",
"from": "acorn@^7.1.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz"
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz"
},
"ajv": {
"version": "6.10.2",
"version": "6.12.0",
"from": "ajv@^6.5.5",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz"
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz"
},
"ansi-regex": {
"version": "2.1.1",
@ -202,9 +212,9 @@
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz"
},
"aws4": {
"version": "1.9.0",
"version": "1.9.1",
"from": "aws4@^1.8.0",
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.0.tgz"
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz"
},
"balanced-match": {
"version": "1.0.0",
@ -467,9 +477,9 @@
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz"
},
"diff": {
"version": "4.0.1",
"version": "4.0.2",
"from": "diff@^4.0.1",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz"
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz"
},
"dir-glob": {
"version": "3.0.1",
@ -518,11 +528,6 @@
"from": "estree-walker@^0.6.1",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz"
},
"esutils": {
"version": "2.0.3",
"from": "esutils@^2.0.2",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"
},
"eventemitter2": {
"version": "0.4.14",
"from": "eventemitter2@>=0.4.13 <0.5.0",
@ -607,7 +612,19 @@
"extract-zip": {
"version": "1.6.7",
"from": "extract-zip@>=1.6.5 <2.0.0",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz"
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz",
"dependencies": {
"minimist": {
"version": "0.0.8",
"from": "minimist@0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz"
},
"mkdirp": {
"version": "0.5.1",
"from": "mkdirp@0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz"
}
}
},
"extsprintf": {
"version": "1.3.0",
@ -615,14 +632,14 @@
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz"
},
"fast-deep-equal": {
"version": "2.0.1",
"from": "fast-deep-equal@^2.0.1",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz"
"version": "3.1.1",
"from": "fast-deep-equal@^3.1.1",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz"
},
"fast-glob": {
"version": "3.1.1",
"version": "3.2.2",
"from": "fast-glob@^3.0.3",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.1.1.tgz",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.2.tgz",
"dependencies": {
"braces": {
"version": "3.0.2",
@ -635,9 +652,9 @@
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
},
"glob-parent": {
"version": "5.1.0",
"version": "5.1.1",
"from": "glob-parent@^5.1.0",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz"
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz"
},
"is-glob": {
"version": "4.0.1",
@ -667,9 +684,9 @@
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz"
},
"fastq": {
"version": "1.6.0",
"from": "fastq@>=1.6.0 <2.0.0",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.6.0.tgz"
"version": "1.6.1",
"from": "fastq@^1.6.0",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.6.1.tgz"
},
"fd-slicer": {
"version": "1.0.1",
@ -813,9 +830,9 @@
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz"
},
"grunt": {
"version": "1.0.4",
"version": "1.1.0",
"from": "grunt@^1.0.1",
"resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.4.tgz",
"resolved": "https://registry.npmjs.org/grunt/-/grunt-1.1.0.tgz",
"dependencies": {
"grunt-cli": {
"version": "1.2.0",
@ -835,9 +852,9 @@
"resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.3.2.tgz",
"dependencies": {
"nopt": {
"version": "4.0.1",
"from": "nopt@>=4.0.1 <4.1.0",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz"
"version": "4.0.3",
"from": "nopt@~4.0.1",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz"
}
}
},
@ -932,7 +949,7 @@
},
"har-validator": {
"version": "5.1.3",
"from": "har-validator@~5.1.0",
"from": "har-validator@~5.1.3",
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz"
},
"has-ansi": {
@ -978,9 +995,9 @@
"resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz"
},
"hosted-git-info": {
"version": "2.8.5",
"version": "2.8.8",
"from": "hosted-git-info@^2.1.4",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz"
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz"
},
"http-signature": {
"version": "1.2.0",
@ -1089,9 +1106,9 @@
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"
},
"is-finite": {
"version": "1.0.2",
"from": "is-finite@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz"
"version": "1.1.0",
"from": "is-finite@^1.0.0",
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz"
},
"is-glob": {
"version": "3.1.0",
@ -1189,7 +1206,7 @@
},
"js-yaml": {
"version": "3.13.1",
"from": "js-yaml@~3.13.0",
"from": "js-yaml@~3.13.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz"
},
"jsbn": {
@ -1233,9 +1250,9 @@
"resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz"
},
"kind-of": {
"version": "6.0.2",
"from": "kind-of@>=6.0.2 <7.0.0",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz"
"version": "6.0.3",
"from": "kind-of@^6.0.2",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz"
},
"klaw": {
"version": "1.3.1",
@ -1270,9 +1287,9 @@
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz"
},
"magic-string": {
"version": "0.25.6",
"version": "0.25.7",
"from": "magic-string@^0.25.5",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.6.tgz"
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz"
},
"make-iterator": {
"version": "1.0.1",
@ -1352,9 +1369,9 @@
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz"
},
"minimist": {
"version": "1.2.0",
"from": "minimist@>=1.1.3 <2.0.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
"version": "1.2.5",
"from": "minimist@^1.1.3",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz"
},
"mixin-deep": {
"version": "1.3.2",
@ -1369,16 +1386,9 @@
}
},
"mkdirp": {
"version": "0.5.1",
"from": "mkdirp@>=0.5.1 <0.6.0",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"dependencies": {
"minimist": {
"version": "0.0.8",
"from": "minimist@0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz"
}
}
"version": "1.0.3",
"from": "mkdirp@~1.0.3",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.3.tgz"
},
"ms": {
"version": "2.0.0",
@ -1558,9 +1568,9 @@
"resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.16.tgz"
},
"picomatch": {
"version": "2.2.1",
"from": "picomatch@^2.0.5",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.1.tgz"
"version": "2.2.2",
"from": "picomatch@^2.2.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz"
},
"pify": {
"version": "2.3.0",
@ -1599,7 +1609,7 @@
},
"psl": {
"version": "1.7.0",
"from": "psl@^1.1.24",
"from": "psl@^1.1.28",
"resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz"
},
"punycode": {
@ -1668,9 +1678,9 @@
"resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz"
},
"request": {
"version": "2.88.0",
"version": "2.88.2",
"from": "request@^2.81.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz"
"resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz"
},
"request-progress": {
"version": "2.0.1",
@ -1678,9 +1688,9 @@
"resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz"
},
"resolve": {
"version": "1.14.2",
"version": "1.15.1",
"from": "resolve@^1.10.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.14.2.tgz"
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz"
},
"resolve-dir": {
"version": "1.0.1",
@ -1699,7 +1709,7 @@
},
"reusify": {
"version": "1.0.4",
"from": "reusify@>=1.0.0 <2.0.0",
"from": "reusify@>=1.0.4 <2.0.0",
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz"
},
"rimraf": {
@ -1715,14 +1725,14 @@
}
},
"rollup": {
"version": "1.29.0",
"version": "1.32.1",
"from": "rollup@^1.27.2",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-1.29.0.tgz"
"resolved": "https://registry.npmjs.org/rollup/-/rollup-1.32.1.tgz"
},
"rollup-plugin-copy": {
"version": "3.1.0",
"version": "3.3.0",
"from": "rollup-plugin-copy@^3.1.0",
"resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.1.0.tgz",
"resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.3.0.tgz",
"dependencies": {
"fs-extra": {
"version": "8.1.0",
@ -1917,9 +1927,9 @@
"resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz"
},
"sourcemap-codec": {
"version": "1.4.7",
"version": "1.4.8",
"from": "sourcemap-codec@^1.4.4",
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.7.tgz"
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz"
},
"spdx-correct": {
"version": "3.1.0",
@ -2026,16 +2036,9 @@
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz"
},
"tough-cookie": {
"version": "2.4.3",
"from": "tough-cookie@~2.4.3",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
"dependencies": {
"punycode": {
"version": "1.4.1",
"from": "punycode@>=1.4.1 <2.0.0",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz"
}
}
"version": "2.5.0",
"from": "tough-cookie@~2.5.0",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz"
},
"trim-newlines": {
"version": "1.0.0",
@ -2043,9 +2046,9 @@
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz"
},
"tslib": {
"version": "1.10.0",
"version": "1.11.1",
"from": "tslib@^1.9.3",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz"
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz"
},
"tslint": {
"version": "5.20.1",
@ -2061,6 +2064,11 @@
"version": "7.1.6",
"from": "glob@^7.1.1",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz"
},
"mkdirp": {
"version": "0.5.3",
"from": "mkdirp@^0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.3.tgz"
}
}
},
@ -2135,7 +2143,7 @@
},
"universalify": {
"version": "0.1.2",
"from": "universalify@>=0.1.0 <0.2.0",
"from": "universalify@^0.1.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz"
},
"unset-value": {
@ -2193,9 +2201,9 @@
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
},
"uuid": {
"version": "3.3.3",
"version": "3.4.0",
"from": "uuid@^3.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz"
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz"
},
"v8flags": {
"version": "3.1.3",

Просмотреть файл

@ -492,6 +492,8 @@ ul.tsd-descriptions > li > :last-child > :last-child > :last-child {
padding-bottom: 200px; }
.row {
display: -ms-flexbox;
display: flex;
position: relative;
margin: 0 -10px; }
.row:after {
@ -585,7 +587,7 @@ ul.tsd-descriptions > li > :last-child > :last-child > :last-child {
height: 17px;
margin: 0 3px 2px 0;
background-image: url(../images/icons.png); }
@media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
.tsd-kind-icon:before {
background-image: url(../images/icons@2x.png);
background-size: 238px 204px; } }
@ -1556,7 +1558,6 @@ pre {
position: fixed !important;
overflow: auto;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
z-index: 1024;
top: 0 !important;
bottom: 0 !important;
@ -1645,7 +1646,6 @@ html.minimal .tsd-navigation {
position: fixed !important;
overflow: auto;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
box-sizing: border-box;
z-index: 1;
left: 0;
@ -1823,11 +1823,6 @@ footer {
-o-column-count: 2;
column-count: 2; } }
.tsd-index-panel ul.tsd-index-list li {
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
-ms-column-break-inside: avoid;
-o-column-break-inside: avoid;
column-break-inside: avoid;
-webkit-page-break-inside: avoid;
-moz-page-break-inside: avoid;
-ms-page-break-inside: avoid;
@ -1884,7 +1879,7 @@ footer {
border-bottom: none; }
.tsd-navigation {
padding: 0 0 0 40px; }
margin: 0 0 0 40px; }
.tsd-navigation a {
display: block;
padding-top: 2px;
@ -1934,56 +1929,45 @@ footer {
.tsd-navigation.primary li.globals + li > a {
padding-top: 20px; }
.tsd-navigation.secondary ul {
transition: opacity 0.2s; }
.tsd-navigation.secondary ul li a {
padding-left: 25px; }
.tsd-navigation.secondary ul li li a {
padding-left: 45px; }
.tsd-navigation.secondary ul li li li a {
padding-left: 65px; }
.tsd-navigation.secondary ul li li li li a {
padding-left: 85px; }
.tsd-navigation.secondary ul li li li li li a {
padding-left: 105px; }
.tsd-navigation.secondary ul li li li li li li a {
padding-left: 125px; }
.tsd-navigation.secondary ul.current a {
.tsd-navigation.secondary {
max-height: calc(100vh - 1rem - 40px);
overflow: auto;
position: -webkit-sticky;
position: sticky;
top: calc(.5rem + 40px);
transition: .3s; }
.tsd-navigation.secondary.tsd-navigation--toolbar-hide {
max-height: calc(100vh - 1rem);
top: .5rem; }
.tsd-navigation.secondary ul {
transition: opacity 0.2s; }
.tsd-navigation.secondary ul li a {
padding-left: 25px; }
.tsd-navigation.secondary ul li li a {
padding-left: 45px; }
.tsd-navigation.secondary ul li li li a {
padding-left: 65px; }
.tsd-navigation.secondary ul li li li li a {
padding-left: 85px; }
.tsd-navigation.secondary ul li li li li li a {
padding-left: 105px; }
.tsd-navigation.secondary ul li li li li li li a {
padding-left: 125px; }
.tsd-navigation.secondary ul.current a {
border-left-color: #eee; }
.tsd-navigation.secondary li.focus > a,
.tsd-navigation.secondary ul.current li.focus > a {
border-left-color: #000; }
.tsd-navigation.secondary li.current {
margin-top: 20px;
margin-bottom: 20px;
border-left-color: #eee; }
.tsd-navigation.secondary li.focus > a,
.tsd-navigation.secondary ul.current li.focus > a {
border-left-color: #000; }
.tsd-navigation.secondary li.current {
margin-top: 20px;
margin-bottom: 20px;
border-left-color: #eee; }
.tsd-navigation.secondary li.current > a {
font-weight: bold; }
.tsd-navigation.secondary li.current > a {
font-weight: bold; }
@media (min-width: 901px) {
.menu-sticky-wrap {
position: static; }
.no-csspositionsticky .menu-sticky-wrap.sticky {
position: fixed; }
.no-csspositionsticky .menu-sticky-wrap.sticky-current {
position: fixed; }
.no-csspositionsticky .menu-sticky-wrap.sticky-current ul.before-current,
.no-csspositionsticky .menu-sticky-wrap.sticky-current ul.after-current {
opacity: 0; }
.no-csspositionsticky .menu-sticky-wrap.sticky-bottom {
position: absolute;
top: auto !important;
left: auto !important;
bottom: 0;
right: 0; }
.csspositionsticky .menu-sticky-wrap.sticky {
position: -webkit-sticky;
position: sticky; }
.csspositionsticky .menu-sticky-wrap.sticky-current {
position: -webkit-sticky;
position: sticky; } }
position: static; } }
.tsd-panel {
margin: 20px 0;
@ -2204,7 +2188,7 @@ ul.tsd-type-parameters {
padding: 0; }
.tsd-page-toolbar {
position: absolute;
position: fixed;
z-index: 1;
top: 0;
left: 0;
@ -2212,7 +2196,8 @@ ul.tsd-type-parameters {
height: 40px;
color: #333;
background: #fff;
border-bottom: 1px solid #eee; }
border-bottom: 1px solid #eee;
transition: transform .3s linear; }
.tsd-page-toolbar a {
color: #333;
text-decoration: none; }
@ -2232,6 +2217,9 @@ ul.tsd-type-parameters {
.tsd-page-toolbar .table-cell:first-child {
width: 100%; }
.tsd-page-toolbar--hide {
transform: translateY(-100%); }
.tsd-widget:before, .tsd-select .tsd-select-label:before, .tsd-select .tsd-select-list li:before {
content: '';
display: inline-block;
@ -2242,7 +2230,7 @@ ul.tsd-type-parameters {
background-repeat: no-repeat;
text-indent: -1024px;
vertical-align: bottom; }
@media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
.tsd-widget:before, .tsd-select .tsd-select-label:before, .tsd-select .tsd-select-list li:before {
background-image: url(../images/widgets@2x.png);
background-size: 320px 40px; } }

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,3 +1,3 @@
var typedoc = typedoc || {};
typedoc.search = typedoc.search || {};
typedoc.search.data = {"kinds":{"1":"External module","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"DynamicProto\"","url":"modules/_dynamicproto_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":4194304,"name":"DynamicProtoDelegate","url":"modules/_dynamicproto_.html#dynamicprotodelegate","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"DynamicProto\""},{"id":2,"kind":65536,"name":"__type","url":"modules/_dynamicproto_.html#dynamicprotodelegate.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"DynamicProto\".DynamicProtoDelegate"},{"id":3,"kind":64,"name":"dynamicProto","url":"modules/_dynamicproto_.html#dynamicproto","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"DynamicProto\""}]};
typedoc.search.data = {"kinds":{"1":"External module","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"DynamicProto\"","url":"modules/_dynamicproto_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":64,"name":"_hasVisited","url":"modules/_dynamicproto_.html#_hasvisited","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"DynamicProto\""},{"id":2,"kind":4194304,"name":"DynamicProtoDelegate","url":"modules/_dynamicproto_.html#dynamicprotodelegate","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"DynamicProto\""},{"id":3,"kind":65536,"name":"__type","url":"modules/_dynamicproto_.html#dynamicprotodelegate.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"\"DynamicProto\".DynamicProtoDelegate"},{"id":4,"kind":64,"name":"dynamicProto","url":"modules/_dynamicproto_.html#dynamicproto","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"DynamicProto\""}]};

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "@microsoft/dynamicproto-js",
"author": "Microsoft Application Insights Team",
"version": "0.5.1",
"version": "0.5.2",
"description": "Microsoft Dynamic Proto Utility",
"keywords": [
"javascript",
@ -40,7 +40,8 @@
"license": "MIT",
"sideEffects": false,
"devDependencies": {
"@microsoft/dynamicproto-rollup": "0.5.1",
"@microsoft/applicationinsights-rollup-es3" : "^1.0.0",
"@microsoft/dynamicproto-rollup": "0.5.2",
"grunt": "^1.0.1",
"grunt-cli": "^1.3.2",
"grunt-contrib-qunit": "^2.0.0",

Просмотреть файл

@ -4,6 +4,7 @@ import {uglify} from "rollup-plugin-uglify";
import replace from "rollup-plugin-replace";
import minify from 'rollup-plugin-minify-es';
import dynamicRemove from "../tools/rollup/esm/removedynamic";
import { es3Check, es3Poly } from "@microsoft/applicationinsights-rollup-es3";
const version = require("./package.json").version;
const inputName = "./out/lib/src/DynamicProto";
@ -35,7 +36,9 @@ const nodeUmdRollupConfigFactory = (isProduction) => {
"// Licensed under the MIT License.": ""
}
}),
nodeResolve()
nodeResolve(),
es3Poly(),
es3Check()
]
};
@ -88,7 +91,9 @@ const moduleRollupConfigFactory = (format, isProduction) => {
"// Licensed under the MIT License.": ""
}
}),
nodeResolve()
nodeResolve(),
es3Poly(),
es3Check()
]
};

Просмотреть файл

@ -19,12 +19,6 @@ const Prototype = 'prototype';
*/
const strFunction = 'function';
/**
* Constant string defined to support minimization
* @ignore
*/
const GetPrototypeOf = 'getPrototypeOf';
/**
* Used to define the name of the instance function lookup table
* @ignore
@ -55,6 +49,18 @@ const DynClassNamePrefix = '_dynCls$';
*/
const UnknownValue = '_unknown_';
/**
* Constant string defined to support minimization
* @ignore
*/
const str__Proto = "__proto__";
/**
* Pre-lookup to check if we are running on a modern browser (i.e. not IE8)
* @ignore
*/
let _objGetPrototypeOf = Object["getPrototypeOf"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value
* @ignore
@ -103,19 +109,14 @@ function _isObjectArrayOrFunctionPrototype(target:any)
function _getObjProto(target:any) {
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
if (Object[GetPrototypeOf]) {
return Object[GetPrototypeOf](target);
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
var proto = "__proto__"; // using indexed lookup to assist with minification
if(_isObjectOrArrayPrototype(target[proto])) {
return target[proto];
}
var construct = target[Constructor];
if (construct) {
// May break if the constructor has been changed or removed
return construct[Prototype];
// target[Constructor] May break if the constructor has been changed or removed
let newProto = target[str__Proto] || target[Prototype] || target[Constructor];
if(newProto) {
return newProto;
}
}
@ -127,10 +128,11 @@ function _getObjProto(target:any) {
* callback and prototype generation.
* @param target The target object, may be a prototpe or class object
* @param funcName The function name
* @param skipOwn Skips the check for own property
* @ignore
*/
function _isDynamicCandidate(target:any, funcName:string) {
return (funcName !== Constructor && _isFunction(target[funcName]) && _hasOwnProperty(target, funcName));
function _isDynamicCandidate(target:any, funcName:string, skipOwn:boolean) {
return (funcName !== Constructor && _isFunction(target[funcName]) && (skipOwn || _hasOwnProperty(target, funcName)));
}
/**
@ -155,7 +157,7 @@ function _getInstanceFuncs(thisTarget:any): any {
// Save any existing instance functions
for (var name in thisTarget) {
// Don't include any dynamic prototype instances - as we only want the real functions
if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name)) {
if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
// Create an instance callback for pasing the base function to the caller
instFuncs[name] = thisTarget[name];
}
@ -164,6 +166,21 @@ function _getInstanceFuncs(thisTarget:any): any {
return instFuncs;
}
/**
* Returns whether the value is included in the array
* @param values The array of values
* @param value The value
*/
function _hasVisited(values:any[], value:any) {
for (let lp = values.length - 1; lp >= 0; lp--) {
if (values[lp] === value) {
return true;
}
}
return false;
}
/**
* Returns an object that contains callback functions for all "base/super" functions, this is used to "save"
* enabling calling super.xxx() functions without requiring that the base "class" has defined a prototype references
@ -186,13 +203,17 @@ function _getBaseFuncs(classProto:any, thisTarget:any, instFuncs:any): any {
// Get the base prototype functions
var baseProto = _getObjProto(classProto);
let visited:any[] = [];
// Don't include base object functions for Object, Array or Function
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto)) {
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
// look for prototype functions
for (var name in baseProto) {
// Don't include any dynamic prototype instances - as we only want the real functions
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name)) {
// For IE 7/8 the prototype lookup doesn't provide the full chain so we need to bypass the
// hasOwnProperty check we get all of the methods, main difference is that IE7/8 doesn't return
// the Object prototype methods while bypassing the check
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
// Create an instance callback for pasing the base function to the caller
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto[name]);
}
@ -201,6 +222,7 @@ function _getBaseFuncs(classProto:any, thisTarget:any, instFuncs:any): any {
// We need to find all possible functions that might be overloaded by walking the entire prototype chain
// This avoids the caller from needing to check whether it's direct base class implements the function or not
// by walking the entire chain it simplifies the usage and issues from upgrading any of the base classes.
visited.push(baseProto);
baseProto = _getObjProto(baseProto);
}
@ -258,7 +280,7 @@ function _populatePrototype(proto:any, className:string, target:any, baseInstFun
let instFuncs = instFuncTable[className] = (instFuncTable[className] || {}); // fetch and assign if as it may not exist yet
for (var name in target) {
// Only add overriden functions
if (_isDynamicCandidate(target, name) && target[name] !== baseInstFuncs[name] ) {
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name] ) {
// Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function
instFuncs[name] = target[name];
delete target[name];

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "@microsoft/dynamicproto-js",
"description": "Microsoft Dynamic Proto Utility",
"version": "0.5.1",
"version": "0.5.2",
"keywords": [
"javascript",
"dynamic prototype",

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "@microsoft/dynamicproto-rollup",
"description": "Microsoft Dynamic Proto Utility Rollup",
"version": "0.5.1",
"version": "0.5.2",
"keywords": [
"javascript",
"dynamic prototype",

Просмотреть файл

@ -50,11 +50,11 @@ function isNullOrWhitespace(value:string) {
export default function dynamicRemove(options:IDynamicProtoRollupOptions = {}) {
var token = (options || {}).tagname || "@DynamicProtoStub";
var replaceValue = (options || {}).comment || "// Removed Stub for %function%.";
let tokenGroups:Array<number> = [4, 9, 12];
let tokenGroups:Array<number> = [4, 10, 13];
let funcNameGroup:number = 6;
// Because of the test infrastructure (PhamtonJS) the RegEx can't use the "s" flag (gis vs gi) or named groups
const pattern = new RegExp("([\\t ]*\\/\\*\\*((?!\\*\\/)(.|\r|\n))*\\*\\/[\\s]*)*(\\/\\/[\\t ]*" + escape(token) + "[^\\r\\n]*(\\r\\n|\n\r|\r|\n))*[\\t ]*([\\w]*\\.prototype(\\.|\\[\\\"|\\[\\')[\\w]*(\\\"\\]|\\'\\])?)[\\t ]*=[\\t ]*function[\\t ]*\\([^\\{]*\\{[^\\/\\}]*(\\/[\\*\\/][\\t ]*" + escape(token) + "[^\\*\\r\\n]*(\\*\\/)?(\\r\\n|\n\r|\r|\n))*[^\\}]*\\};([\\t ]*\\/\\/[\\t ]*" + escape(token) + "[^\\r\\n]*)*", 'gi');
const pattern = new RegExp("([\\t ]*\\/\\*\\*((?!\\*\\/)(.|\\r|\\n))*\\*\\/[\\s]*)*(\\/\\/[\\t ]*" + escape(token) + "[^\\r\\n]*(\\r\\n|\\n\\r|\\r|\\n))*[\\t ]*([\\w]*\\.prototype(\\.|\\[\\\"|\\[\\')[\\w]*(\\\"\\]|\\'\\])?)[\\t ]*=[\\t ]*function[\\t ]*\\([^\\{]*\\{[^\\/\\}\\{]*(\\{[^\\}]*\\}[^\\/\\}\\{]*)*(\\/[\\*\\/][\\t ]*" + escape(token) + "[^\\*\\r\\n]*(\\*\\/)?(\\r\\n|\\n\\r|\\r|\\n))*[^\\}]*\\};([\\t ]*\\/\\/[\\t ]*" + escape(token) + "[^\\r\\n]*)*", 'gi');
function formatError(token:string, code:string, pos:number, id:string) {
let lines = code.split(/(?:\r\n|\n\r|\r|\n)/);

Просмотреть файл

@ -600,5 +600,67 @@ export class DynamicProtoRollupTests extends TestClass {
"6 :// Removed Stub for ClassName.prototype.methodName.\n");
}
});
this.testCase({
name: "Test prefixed comment with typescript boilerplate for spread and default arguments",
test: () => {
this.doTest(null,
"/**\n" +
" * This method tells if given durations should be excluded from collection.\n" +
" */\n" +
"PageViewPerformanceManager.prototype.shouldCollectDuration = function () {\n" +
" var durations = [];\n" +
" for (var _i = 0; _i < arguments.length; _i++) {\n" +
" durations[_i] = arguments[_i];\n" +
" }\n" +
" // @DynamicProtoStub\n" +
" return true;\n" +
"};\n",
"// Removed Stub for PageViewPerformanceManager.prototype.shouldCollectDuration.\n");
this.doTest(null,
" /**\n" +
" * Manually trigger an immediate send of all telemetry still in the buffer using beacon Sender.\n" +
" * Fall back to xhr sender if beacon is not supported.\n" +
" * @param {boolean} [async=true]\n" +
" * @memberof Initialization\n" +
" */\n" +
"Initialization.prototype.onunloadFlush = function (async) {\n" +
" if (async === void 0) { async = true; }\n" +
" // @DynamicProtoStub\n" +
"};\n",
"// Removed Stub for Initialization.prototype.onunloadFlush.\n");
this.doTest(null,
"/**\n" +
" * This method tells if given durations should be excluded from collection.\n" +
" */\n" +
"PageViewPerformanceManager.prototype.shouldCollectDuration = function () {\n" +
" var durations = [];\n" +
" for (var _i = 0; _i < arguments.length; _i++) {\n" +
" durations[_i] = arguments[_i];\n" +
" }\n" +
" /* @DynamicProtoStub\n" +
" */\n" +
" return true;\n" +
"};\n",
"// Removed Stub for PageViewPerformanceManager.prototype.shouldCollectDuration.\n");
this.doTest(null,
" /**\n" +
" * Manually trigger an immediate send of all telemetry still in the buffer using beacon Sender.\n" +
" * Fall back to xhr sender if beacon is not supported.\n" +
" * @param {boolean} [async=true]\n" +
" * @memberof Initialization\n" +
" */\n" +
"Initialization.prototype.onunloadFlush = function (async) {\n" +
" if (async === void 0) { async = true; }\n" +
" /* @DynamicProtoStub\n" +
" */\n" +
"};\n",
"// Removed Stub for Initialization.prototype.onunloadFlush.\n");
}
});
}
}