From 65e7dfd64c21ac7837c60fb3e7d20bd22959c3a7 Mon Sep 17 00:00:00 2001 From: Alexander Navratil Date: Fri, 24 Jan 2020 11:20:34 +0100 Subject: [PATCH] add promise polyfill for text tool to work in IE11 --- js/main.js | 1 + package-lock.json | 53 ++++++++++++++--------------------------------- package.json | 9 ++++---- 3 files changed, 22 insertions(+), 41 deletions(-) diff --git a/js/main.js b/js/main.js index 217a860..aedc611 100644 --- a/js/main.js +++ b/js/main.js @@ -19,6 +19,7 @@ import Inserter from './inserter'; import Settings from './settings'; import ControlBuilder from './controlbuilder'; +require('es6-promise').polyfill(); require('string.prototype.repeat'); class PainterroProc { diff --git a/package-lock.json b/package-lock.json index e60d911..51f9a24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "painterro", - "version": "1.0.29", + "version": "1.0.29.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1066,25 +1066,6 @@ "babel-types": "^6.24.1" } }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, "babel-preset-es2015": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", @@ -1261,9 +1242,9 @@ } }, "base64-arraybuffer": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", - "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", + "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", "dev": true }, "base64-js": { @@ -2167,12 +2148,12 @@ "dev": true }, "css-line-break": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-1.0.1.tgz", - "integrity": "sha1-GfIGOjPpX7KDG4ZEbAuAwYivRQo=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-1.1.1.tgz", + "integrity": "sha512-1feNVaM4Fyzdj4mKPIQNL2n70MmuYzAXZ1aytlROFX1JsOo070OsugwGjj7nl6jnDJWHDM8zRZswkmeYVWZJQA==", "dev": true, "requires": { - "base64-arraybuffer": "^0.1.5" + "base64-arraybuffer": "^0.2.0" } }, "css-loader": { @@ -2665,10 +2646,9 @@ } }, "es6-promise": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz", - "integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==", - "dev": true + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" }, "escape-html": { "version": "1.0.3", @@ -4505,12 +4485,12 @@ "dev": true }, "html2canvas": { - "version": "1.0.0-rc.1", - "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.0.0-rc.1.tgz", - "integrity": "sha512-ImguLJ3goQnY0P6z7n6VqBZ+ViS77Hv6J7iYXBxvdb3NWz3s8/mqr4/Lj0OlMUb3ID+qCQ1BPLIBuRMqhgqvYg==", + "version": "1.0.0-rc.5", + "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.0.0-rc.5.tgz", + "integrity": "sha512-DtNqPxJNXPoTajs+lVQzGS1SULRI4GQaROeU5R41xH8acffHukxRh/NBVcTBsfCkJSkLq91rih5TpbEwUP9yWA==", "dev": true, "requires": { - "css-line-break": "1.0.1" + "css-line-break": "1.1.1" } }, "http-deceiver": { @@ -8104,8 +8084,7 @@ "string.prototype.repeat": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", - "integrity": "sha1-q6Nt4I3O5qWjN9SbLqHaGyj8Ds8=", - "dev": true + "integrity": "sha1-q6Nt4I3O5qWjN9SbLqHaGyj8Ds8=" }, "string_decoder": { "version": "1.1.1", diff --git a/package.json b/package.json index 7d058cb..76cc6fb 100644 --- a/package.json +++ b/package.json @@ -27,19 +27,17 @@ "babel-preset-es2015": "^6.24.1", "babel-preset-es2016": "^6.24.1", "css-loader": "^0.28.3", - "es6-promise": "^4.1.1", "eslint": "^4.1.1", "eslint-config-airbnb-base": "^11.2.0", "eslint-loader": "^2.2.1", "eslint-plugin-import": "^2.7.0", - "html2canvas": "^1.0.0-alpha.9", + "html2canvas": "^1.0.0-rc.5", "icon-font-generator": "^2.1.10", "ismobilejs": "^1.0.3", "js-yaml": ">=3.13.1", "lodash": ">=4.17.13", "mime": ">=1.4.1", "raw-loader": "^0.5.1", - "string.prototype.repeat": "^0.2.0", "style-loader": "^0.18.1", "url-loader": "^0.5.8", "webfonts-generator": "^0.4.0", @@ -47,5 +45,8 @@ "webpack-cli": "^3.3.2", "webpack-dev-server": "^3.8.1" }, - "dependencies": {} + "dependencies": { + "es6-promise": "^4.2.8", + "string.prototype.repeat": "^0.2.0" + } }