@aws-crypto/ie11-detection
Advanced tools
Comparing version 0.1.0 to 1.0.0-alpha.0
@@ -1,5 +0,5 @@ | ||
export * from './CryptoOperation'; | ||
export * from './Key'; | ||
export * from './KeyOperation'; | ||
export * from './MsSubtleCrypto'; | ||
export * from './MsWindow'; | ||
export * from "./CryptoOperation"; | ||
export * from "./Key"; | ||
export * from "./KeyOperation"; | ||
export * from "./MsSubtleCrypto"; | ||
export * from "./MsWindow"; |
@@ -1,8 +0,8 @@ | ||
import { CryptoOperation } from './CryptoOperation'; | ||
import { Key } from './Key'; | ||
import { KeyOperation } from './KeyOperation'; | ||
export declare type KeyUsage = 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'derive' | 'wrap' | 'unwrap'; | ||
export declare type EncryptionOrVerificationAlgorithm = 'RSAES-PKCS1-v1_5'; | ||
export declare type Ie11EncryptionAlgorithm = 'AES-CBC' | 'AES-GCM' | 'RSA-OAEP' | EncryptionOrVerificationAlgorithm; | ||
export declare type Ie11DigestAlgorithm = 'SHA-1' | 'SHA-256' | 'SHA-384'; | ||
import { CryptoOperation } from "./CryptoOperation"; | ||
import { Key } from "./Key"; | ||
import { KeyOperation } from "./KeyOperation"; | ||
export declare type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "derive" | "wrapKey" | "unwrapKey" | "importKey"; | ||
export declare type EncryptionOrVerificationAlgorithm = "RSAES-PKCS1-v1_5"; | ||
export declare type Ie11EncryptionAlgorithm = "AES-CBC" | "AES-GCM" | "RSA-OAEP" | EncryptionOrVerificationAlgorithm; | ||
export declare type Ie11DigestAlgorithm = "SHA-1" | "SHA-256" | "SHA-384"; | ||
export interface HashAlgorithm { | ||
@@ -12,3 +12,3 @@ name: Ie11DigestAlgorithm; | ||
export interface HmacAlgorithm { | ||
name: 'HMAC'; | ||
name: "HMAC"; | ||
hash: HashAlgorithm; | ||
@@ -15,0 +15,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var msSubtleCryptoMethods = [ | ||
'decrypt', | ||
'digest', | ||
'encrypt', | ||
'exportKey', | ||
'generateKey', | ||
'importKey', | ||
'sign', | ||
'verify', | ||
"decrypt", | ||
"digest", | ||
"encrypt", | ||
"exportKey", | ||
"generateKey", | ||
"importKey", | ||
"sign", | ||
"verify" | ||
]; | ||
function quacksLikeAnMsWindow(window) { | ||
return 'MSInputMethodContext' in window && | ||
'msCrypto' in window; | ||
return "MSInputMethodContext" in window && "msCrypto" in window; | ||
} | ||
@@ -27,3 +26,3 @@ /** | ||
.concat(getRandomValues) | ||
.every(function (method) { return typeof method === 'function'; }); | ||
.every(function (method) { return typeof method === "function"; }); | ||
} | ||
@@ -30,0 +29,0 @@ return false; |
{ | ||
"name": "@aws-crypto/ie11-detection", | ||
"version": "0.1.0", | ||
"version": "1.0.0-alpha.0", | ||
"description": "Provides functions and types for detecting if the host environment is IE11", | ||
@@ -9,22 +9,18 @@ "scripts": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" | ||
}, | ||
"author": { | ||
"name": "AWS Crypto Tools Team", | ||
"email": "aws-cryptools@amazon.com", | ||
"url": "https://aws.amazon.com/javascript/" | ||
"url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" | ||
}, | ||
"license": "Apache-2.0", | ||
"main": "./build/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/mocha": "^5.2.5", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.0.1", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.0.1" | ||
}, | ||
"types": "./build/index.d.ts", | ||
"dependencies": { | ||
"tslib": "^1.9.3" | ||
} | ||
}, | ||
"gitHead": "1aeaf55c8803ae537cc03fef3541dc8567983b9b" | ||
} |
@@ -1,6 +0,6 @@ | ||
# @aws/crypto-ie11-detection | ||
# @aws-crypto/crypto-ie11-detection | ||
Functions for interact with IE11 browsers Crypto. The IE11 `window.subtle` functions are unique. | ||
Functions for interact with IE11 browsers Crypto. The IE11 `window.subtle` functions are unique. | ||
This library is used to identify an IE11 `window` and then offering types for crypto functions. | ||
For example see @aws/crypto-random-source-browser | ||
For example see @aws-crypto/crypto-random-source-browser | ||
@@ -10,3 +10,3 @@ ## Usage | ||
``` | ||
import {isMsWindow} from '@aws/crypto-ie11-detection' | ||
import {isMsWindow} from '@aws-crypto/crypto-ie11-detection' | ||
@@ -13,0 +13,0 @@ if (isMsWindow(window)) { |
@@ -5,7 +5,3 @@ { | ||
"target": "es5", | ||
"lib": [ | ||
"dom", | ||
"es5", | ||
"es2015.collection" | ||
], | ||
"lib": ["dom", "es5", "es2015.collection"], | ||
"strict": true, | ||
@@ -22,2 +18,2 @@ "sourceMap": true, | ||
"exclude": ["node_modules/**"] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27365
0
29
336
0
0