committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
45
node_modules/abab/CHANGELOG.md
generated
vendored
45
node_modules/abab/CHANGELOG.md
generated
vendored
@ -1,45 +0,0 @@
|
||||
## 2.0.5
|
||||
|
||||
- Use a lookup string in atobLookup and btoaLookup (@GiovanniFrigo in #38)
|
||||
- Dependency updates
|
||||
|
||||
## 2.0.4
|
||||
|
||||
- Dependency updates
|
||||
|
||||
## 2.0.3
|
||||
|
||||
- Use standard wording for BSD-3-Clause license (@PhilippWendler)
|
||||
|
||||
## 2.0.2
|
||||
|
||||
- Correct license in `package.json` (@Haegin)
|
||||
|
||||
## 2.0.1
|
||||
|
||||
- Add TypeScript type definitions, thanks to @LinusU
|
||||
|
||||
## 2.0.0
|
||||
|
||||
Modernization updates thanks to @TimothyGu:
|
||||
|
||||
- Use jsdom's eslint config, remove jscs
|
||||
- Move syntax to ES6
|
||||
- Remove Babel
|
||||
- Via: https://github.com/jsdom/abab/pull/26
|
||||
|
||||
## 1.0.4
|
||||
|
||||
- Added license file
|
||||
|
||||
## 1.0.3
|
||||
|
||||
- Replaced `let` with `var` in `lib/btoa.js`
|
||||
- Follow up from `1.0.2`
|
||||
- Resolves https://github.com/jsdom/abab/issues/18
|
||||
|
||||
## 1.0.2
|
||||
|
||||
- Replaced `const` with `var` in `index.js`
|
||||
- Allows use of `abab` in the browser without a transpilation step
|
||||
- Resolves https://github.com/jsdom/abab/issues/15
|
4
node_modules/abab/lib/atob.js
generated
vendored
4
node_modules/abab/lib/atob.js
generated
vendored
@ -5,6 +5,10 @@
|
||||
* instead of throwing INVALID_CHARACTER_ERR we return null.
|
||||
*/
|
||||
function atob(data) {
|
||||
if (arguments.length === 0) {
|
||||
throw new TypeError("1 argument required, but only 0 present.");
|
||||
}
|
||||
|
||||
// Web IDL requires DOMStrings to just be converted using ECMAScript
|
||||
// ToString, which in our case amounts to using a template literal.
|
||||
data = `${data}`;
|
||||
|
4
node_modules/abab/lib/btoa.js
generated
vendored
4
node_modules/abab/lib/btoa.js
generated
vendored
@ -5,6 +5,10 @@
|
||||
* RFC 4648.
|
||||
*/
|
||||
function btoa(s) {
|
||||
if (arguments.length === 0) {
|
||||
throw new TypeError("1 argument required, but only 0 present.");
|
||||
}
|
||||
|
||||
let i;
|
||||
// String conversion as required by Web IDL.
|
||||
s = `${s}`;
|
||||
|
2
node_modules/abab/package.json
generated
vendored
2
node_modules/abab/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "abab",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "WHATWG spec-compliant implementations of window.atob and window.btoa.",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
Reference in New Issue
Block a user