Merge pull request #32 from billylo1/polyfill-starts-with

Add a polyfill for String.prototype.startsWith
This commit is contained in:
Ryan Slobojan 2021-10-05 12:56:28 -04:00 committed by GitHub
commit 3ae22de2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 6 deletions

19
package-lock.json generated
View File

@ -42,6 +42,7 @@
"react": "^17.0.2",
"react-device-detect": "^1.17.0",
"react-dom": "^17.0.2",
"string.prototype.startswith": "^1.0.0",
"tls": "^0.0.1",
"uuid": "^8.3.2",
"webpack": "^5.0.0",
@ -4336,6 +4337,15 @@
"node": ">=6"
}
},
"node_modules/string.prototype.startswith": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/string.prototype.startswith/-/string.prototype.startswith-1.0.0.tgz",
"integrity": "sha512-VHhsDkuf8gsw4JNRK9cIZjYe6r7PsVUutVohaBhqYAoPaRADoQH+mMgUg7Cs/TgQeDGEvI+PzPEMOdvdsCMvpg==",
"dependencies": {
"define-properties": "^1.1.3",
"es-abstract": "^1.17.5"
}
},
"node_modules/string.prototype.trimend": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz",
@ -8726,6 +8736,15 @@
}
}
},
"string.prototype.startswith": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/string.prototype.startswith/-/string.prototype.startswith-1.0.0.tgz",
"integrity": "sha512-VHhsDkuf8gsw4JNRK9cIZjYe6r7PsVUutVohaBhqYAoPaRADoQH+mMgUg7Cs/TgQeDGEvI+PzPEMOdvdsCMvpg==",
"requires": {
"define-properties": "^1.1.3",
"es-abstract": "^1.17.5"
}
},
"string.prototype.trimend": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz",

View File

@ -48,6 +48,7 @@
"react": "^17.0.2",
"react-device-detect": "^1.17.0",
"react-dom": "^17.0.2",
"string.prototype.startswith": "^1.0.0",
"tls": "^0.0.1",
"uuid": "^8.3.2",
"webpack": "^5.0.0",

View File

@ -5,6 +5,8 @@ import SEO from '../next-seo.config';
import type {AppProps} from 'next/app';
import {appWithTranslation} from 'next-i18next';
import 'string.prototype.startswith';
import { initSentry } from '../src/sentry';
initSentry();

View File

@ -1276,7 +1276,7 @@
dependencies:
"is-arrayish" "^0.2.1"
"es-abstract@^1.18.0-next.1", "es-abstract@^1.18.0-next.2":
"es-abstract@^1.17.5", "es-abstract@^1.18.0-next.1", "es-abstract@^1.18.0-next.2":
"integrity" "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw=="
"resolved" "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz"
"version" "1.18.3"
@ -1473,11 +1473,6 @@
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"
"fsevents@~2.3.1", "fsevents@~2.3.2":
"integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
"version" "2.3.2"
"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
@ -3090,6 +3085,14 @@
"is-fullwidth-code-point" "^2.0.0"
"strip-ansi" "^5.1.0"
"string.prototype.startswith@^1.0.0":
"integrity" "sha512-VHhsDkuf8gsw4JNRK9cIZjYe6r7PsVUutVohaBhqYAoPaRADoQH+mMgUg7Cs/TgQeDGEvI+PzPEMOdvdsCMvpg=="
"resolved" "https://registry.npmjs.org/string.prototype.startswith/-/string.prototype.startswith-1.0.0.tgz"
"version" "1.0.0"
dependencies:
"define-properties" "^1.1.3"
"es-abstract" "^1.17.5"
"string.prototype.trimend@^1.0.4":
"integrity" "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A=="
"resolved" "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz"