🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@aws-crypto/sha256-browser

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/sha256-browser - npm Package Compare versions

Comparing version

to
1.0.0

1

build/constants.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EMPTY_DATA_SHA_256 = exports.SHA_256_HMAC_ALGO = exports.SHA_256_HASH = void 0;
exports.SHA_256_HASH = { name: "SHA-256" };

@@ -4,0 +5,0 @@ exports.SHA_256_HMAC_ALGO = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sha256 = void 0;
var ie11Sha256_1 = require("./ie11Sha256");

@@ -4,0 +5,0 @@ var webCryptoSha256_1 = require("./webCryptoSha256");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sha256 = void 0;
var isEmptyData_1 = require("./isEmptyData");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

4

build/index.js

@@ -6,5 +6,5 @@ "use strict";

var ie11Sha256_1 = require("./ie11Sha256");
exports.Ie11Sha256 = ie11Sha256_1.Sha256;
Object.defineProperty(exports, "Ie11Sha256", { enumerable: true, get: function () { return ie11Sha256_1.Sha256; } });
var webCryptoSha256_1 = require("./webCryptoSha256");
exports.WebCryptoSha256 = webCryptoSha256_1.Sha256;
Object.defineProperty(exports, "WebCryptoSha256", { enumerable: true, get: function () { return webCryptoSha256_1.Sha256; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEmptyData = void 0;
function isEmptyData(data) {

@@ -4,0 +5,0 @@ if (typeof data === "string") {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sha256 = void 0;
var util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");

@@ -4,0 +5,0 @@ var isEmptyData_1 = require("./isEmptyData");

@@ -6,2 +6,10 @@ # Change Log

# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@1.0.0-alpha.0...@aws-crypto/sha256-browser@1.0.0) (2020-10-22)
**Note:** Version bump only for package @aws-crypto/sha256-browser
# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@0.1.0-preview.4...@aws-crypto/sha256-browser@1.0.0-alpha.0) (2020-02-07)

@@ -8,0 +16,0 @@

{
"name": "@aws-crypto/sha256-browser",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"scripts": {

@@ -20,13 +20,13 @@ "prepublishOnly": "tsc",

"dependencies": {
"@aws-crypto/ie11-detection": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-crypto/supports-web-crypto": "^1.0.0-alpha.0",
"@aws-sdk/types": "^1.0.0-alpha.0",
"@aws-sdk/util-locate-window": "^1.0.0-alpha.0",
"@aws-sdk/util-utf8-browser": "^1.0.0-alpha.0",
"tslib": "^1.9.3"
"@aws-crypto/ie11-detection": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-crypto/supports-web-crypto": "^1.0.0",
"@aws-sdk/types": "^1.0.0-rc.1",
"@aws-sdk/util-locate-window": "^1.0.0-rc.1",
"@aws-sdk/util-utf8-browser": "^1.0.0-rc.1",
"tslib": "^1.11.1"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"gitHead": "1aeaf55c8803ae537cc03fef3541dc8567983b9b"
"gitHead": "025ac6e89439c04a2d741663ef8781052e8f7e86"
}

@@ -1,5 +0,5 @@

# @aws-crypto/crypto-sha256-browser
# @aws-crypto/sha256-browser
SHA256 wrapper for browsers that prefers `window.crypto.subtle` but will
fall back to a pure JS implementation in @aws-crypto/crypto-sha256-js
fall back to a pure JS implementation in @aws-crypto/sha256-js
to provide a consistent interface for SHA256.

@@ -10,3 +10,3 @@

```
import {Sha256} from '@aws-crypto/crypto-sha256-browser'
import {Sha256} from '@aws-crypto/sha256-browser'

@@ -13,0 +13,0 @@ const hash = new Sha256();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet