Comparing version 4.0.0 to 4.1.0
{ | ||
"name": "crypto-js", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "JavaScript library of crypto standards.", | ||
@@ -30,3 +30,4 @@ "license": "MIT", | ||
"CBC", | ||
"Base64" | ||
"Base64", | ||
"Base64url" | ||
], | ||
@@ -33,0 +34,0 @@ "main": "index.js", |
16
core.js
@@ -30,2 +30,12 @@ ;(function (root, factory) { | ||
// Native crypto in web worker (Browser) | ||
if (typeof self !== 'undefined' && self.crypto) { | ||
crypto = self.crypto; | ||
} | ||
// Native crypto from worker | ||
if (typeof globalThis !== 'undefined' && globalThis.crypto) { | ||
crypto = globalThis.crypto; | ||
} | ||
// Native (experimental IE 11) crypto from window (Browser) | ||
@@ -91,3 +101,3 @@ if (!crypto && typeof window !== 'undefined' && window.msCrypto) { | ||
}; | ||
}()) | ||
}()); | ||
@@ -303,4 +313,4 @@ /** | ||
// Copy one word at a time | ||
for (var i = 0; i < thatSigBytes; i += 4) { | ||
thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2]; | ||
for (var j = 0; j < thatSigBytes; j += 4) { | ||
thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2]; | ||
} | ||
@@ -307,0 +317,0 @@ } |
;(function (root, factory, undef) { | ||
if (typeof exports === "object") { | ||
// CommonJS | ||
module.exports = exports = factory(require("./core"), require("./x64-core"), require("./lib-typedarrays"), require("./enc-utf16"), require("./enc-base64"), require("./md5"), require("./sha1"), require("./sha256"), require("./sha224"), require("./sha512"), require("./sha384"), require("./sha3"), require("./ripemd160"), require("./hmac"), require("./pbkdf2"), require("./evpkdf"), require("./cipher-core"), require("./mode-cfb"), require("./mode-ctr"), require("./mode-ctr-gladman"), require("./mode-ofb"), require("./mode-ecb"), require("./pad-ansix923"), require("./pad-iso10126"), require("./pad-iso97971"), require("./pad-zeropadding"), require("./pad-nopadding"), require("./format-hex"), require("./aes"), require("./tripledes"), require("./rc4"), require("./rabbit"), require("./rabbit-legacy")); | ||
module.exports = exports = factory(require("./core"), require("./x64-core"), require("./lib-typedarrays"), require("./enc-utf16"), require("./enc-base64"), require("./enc-base64url"), require("./md5"), require("./sha1"), require("./sha256"), require("./sha224"), require("./sha512"), require("./sha384"), require("./sha3"), require("./ripemd160"), require("./hmac"), require("./pbkdf2"), require("./evpkdf"), require("./cipher-core"), require("./mode-cfb"), require("./mode-ctr"), require("./mode-ctr-gladman"), require("./mode-ofb"), require("./mode-ecb"), require("./pad-ansix923"), require("./pad-iso10126"), require("./pad-iso97971"), require("./pad-zeropadding"), require("./pad-nopadding"), require("./format-hex"), require("./aes"), require("./tripledes"), require("./rc4"), require("./rabbit"), require("./rabbit-legacy")); | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
// AMD | ||
define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy"], factory); | ||
define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./enc-base64url", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy"], factory); | ||
} | ||
@@ -10,0 +10,0 @@ else { |
{ | ||
"name": "crypto-js", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "JavaScript library of crypto standards.", | ||
@@ -34,3 +34,4 @@ "license": "MIT", | ||
"CBC", | ||
"Base64" | ||
"Base64", | ||
"Base64url" | ||
], | ||
@@ -37,0 +38,0 @@ "main": "index.js", |
@@ -215,2 +215,8 @@ # crypto-js [![Build Status](https://travis-ci.org/brix/crypto-js.svg?branch=develop)](https://travis-ci.org/brix/crypto-js) | ||
### 4.1.0 | ||
Added url safe variant of base64 encoding. [357](https://github.com/brix/crypto-js/pull/357) | ||
Avoid webpack to add crypto-browser package. [364](https://github.com/brix/crypto-js/pull/364) | ||
### 4.0.0 | ||
@@ -222,3 +228,3 @@ | ||
For this reason CryptoJS might does not run in some JavaScript environments without native crypto module. Such as IE 10 or before or React Native. | ||
For this reason CryptoJS might not run in some JavaScript environments without native crypto module. Such as IE 10 or before or React Native. | ||
@@ -225,0 +231,0 @@ ### 3.3.0 |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
443678
55
11551
256