Skip to content

Commit b39e287

Browse files
rm ie 11
1 parent 37f2d81 commit b39e287

File tree

5 files changed

+0
-58
lines changed

5 files changed

+0
-58
lines changed

modules/web-crypto-backend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
},
2020
"license": "Apache-2.0",
2121
"dependencies": {
22-
"@aws-crypto/ie11-detection": "4.0.0",
2322
"@aws-crypto/supports-web-crypto": "5.2.0",
2423
"@aws-sdk/util-locate-window": "3.310.0",
2524
"tslib": "^2.2.0"

modules/web-crypto-backend/src/backend-factory.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { isMsWindow } from '@aws-crypto/ie11-detection'
54
import {
65
supportsWebCrypto,
76
supportsSubtleCrypto,
@@ -140,7 +139,6 @@ export function pluckSubtleCrypto(window: Window): MaybeSubtleCrypto {
140139
// if needed webkitSubtle check should be added here
141140
// see: https://webkit.org/blog/7790/update-on-web-cryptography/
142141
if (supportsWebCrypto(window)) return window.crypto.subtle
143-
if (isMsWindow(window)) return promisifyMsSubtleCrypto(window.msCrypto.subtle)
144142
return false
145143
}
146144

modules/web-crypto-backend/src/promisify-ms-crypto.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

modules/web-crypto-backend/src/synchronous_random_values.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { isMsWindow } from '@aws-crypto/ie11-detection'
54
import { supportsSecureRandom } from '@aws-crypto/supports-web-crypto'
65
import { locateWindow } from '@aws-sdk/util-locate-window'
76

@@ -19,10 +18,6 @@ export function generateSynchronousRandomValues(
1918
return function synchronousRandomValues(byteLength: number): Uint8Array {
2019
if (supportsSecureRandom(globalScope)) {
2120
return globalScope.crypto.getRandomValues(new Uint8Array(byteLength))
22-
} else if (isMsWindow(globalScope)) {
23-
const values = new Uint8Array(byteLength)
24-
globalScope.msCrypto.getRandomValues(values)
25-
return values
2621
}
2722

2823
throw new Error(`Unable to locate a secure random source.`)

package-lock.json

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)