From e67835a098cc501e31a48542d84578d8f144e0de Mon Sep 17 00:00:00 2001 From: Xiaoning Liu Date: Tue, 25 Dec 2018 16:39:10 +0800 Subject: [PATCH] Use @babel/polyfill for IE11 testing, drop polyfill.io --- blob/karma.conf.js | 3 ++- blob/package-lock.json | 18 +++++++++++++++++- blob/package.json | 3 ++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/blob/karma.conf.js b/blob/karma.conf.js index 647b436..898e39b 100644 --- a/blob/karma.conf.js +++ b/blob/karma.conf.js @@ -26,7 +26,8 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ // polyfill service supporting IE11 missing features - "https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes", + // Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes&flags=always + "./node_modules/@babel/polyfill/dist/polyfill.js", "dist-test/index.browser.js" ], diff --git a/blob/package-lock.json b/blob/package-lock.json index f42b18d..f159ad9 100644 --- a/blob/package-lock.json +++ b/blob/package-lock.json @@ -1,6 +1,6 @@ { "name": "@azure/storage-blob", - "version": "10.2.0-preview", + "version": "10.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -85,6 +85,16 @@ "integrity": "sha512-UNTmQ5cSLDeBGBl+s7JeowkqIHgmFAGBnLDdIzFmUNSuS5JF0XBcN59jsh/vJO/YjfsBqMxhMjoFGmNExmf0FA==", "dev": true }, + "@babel/polyfill": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.2.5.tgz", + "integrity": "sha512-8Y/t3MWThtMLYr0YNC/Q76tqN1w30+b0uQMeFUYauG2UGTR19zyUtFrAzT23zNtBxPp+LbE5E/nwV/q/r3y6ug==", + "dev": true, + "requires": { + "core-js": "^2.5.7", + "regenerator-runtime": "^0.12.0" + } + }, "@babel/template": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.2.2.tgz", @@ -5992,6 +6002,12 @@ "strip-indent": "^1.0.1" } }, + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==", + "dev": true + }, "regex-cache": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", diff --git a/blob/package.json b/blob/package.json index 830eb67..92d2f5b 100644 --- a/blob/package.json +++ b/blob/package.json @@ -22,6 +22,7 @@ "tslib": "^1.9.3" }, "devDependencies": { + "@babel/polyfill": "^7.2.5", "@types/mocha": "^5.2.5", "@types/node": "^10.12.3", "assert": "^1.4.1", @@ -92,4 +93,4 @@ }, "homepage": "https://github.com/Azure/azure-storage-js#readme", "sideEffects": false -} \ No newline at end of file +}