diff --git a/dist/esm/index.node.js b/dist/esm/index.node.js index bfa9c4c..79b6c9b 100644 --- a/dist/esm/index.node.js +++ b/dist/esm/index.node.js @@ -28,4 +28,4 @@ function removeBase64Padding(str) { } export { decode, encode }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubm9kZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3RzL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpudWxsLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQk0sU0FBVSxNQUFNLENBQUUsS0FBcUQsRUFBRSxPQUFtQixHQUFBLEtBQUssRUFBRSxPQUFBLEdBQW1CLElBQUksRUFBQTtJQUM5SCxJQUFJLE1BQU0sR0FBRyxFQUFFLENBQUE7QUFDZixJQUtPO0FBQ0wsUUFBQSxNQUFNLEtBQUssR0FBRyxDQUFDLE9BQU8sS0FBSyxLQUFLLFFBQVE7Y0FDcEMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDO0FBQzVCLGNBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQTtBQUN0QixRQUFBLE1BQU0sR0FBRyxLQUFLLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBQ2xDLEtBQUE7QUFDRCxJQUFBLElBQUksT0FBTztBQUFFLFFBQUEsTUFBTSxHQUFHLGlCQUFpQixDQUFDLE1BQU0sQ0FBQyxDQUFBO0FBQy9DLElBQUEsSUFBSSxDQUFDLE9BQU87QUFBRSxRQUFBLE1BQU0sR0FBRyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQTtBQUNsRCxJQUFBLE9BQU8sTUFBTSxDQUFBO0FBQ2YsQ0FBQztTQWFlLE1BQU0sQ0FBRSxNQUFjLEVBQUUsZUFBb0MsS0FBSyxFQUFBO0FBQy9FLElBWU87UUF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ZELENBQUM7QUFNRCxTQUFTLG1CQUFtQixDQUFFLEdBQVcsRUFBQTtJQUN2QyxPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQyxDQUFBO0FBQzlCOzs7OyJ9 diff --git a/docs/API.md b/docs/API.md index f5aed27..257ebf4 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1,4 +1,4 @@ -# @juanelas/base64 - v1.1.3 +# @juanelas/base64 - v1.1.4 Base64url for both node.js and brwser javascript. It can work with ArrayBuffer|TypedArray|Buffer diff --git a/package-lock.json b/package-lock.json index 16215e7..23f5e94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@juanelas/base64", - "version": "1.1.3", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@juanelas/base64", - "version": "1.1.3", + "version": "1.1.4", "license": "MIT", "devDependencies": { "@rollup/plugin-commonjs": "^25.0.2", diff --git a/package.json b/package.json index f528eb7..15e9a30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@juanelas/base64", - "version": "1.1.3", + "version": "1.1.4", "description": "Base64 for both node.js and browser javascript. It supports URL-safe encoding and enabling/disabling padding. Buffers can be implementedd using ArrayBuffer, any TypedArray, or Buffer", "keywords": [ "base64",