Compare commits

..

No commits in common. "0d4094d74603e595fab5679336d303549c1838b6" and "6a37345d04abc34602ab1cba7c4222b1b55a0180" have entirely different histories.

5 changed files with 4 additions and 11 deletions

View File

@ -1,3 +1,2 @@
* *
!dist/**/* !dist/**/*
!typings/**/*

3
package-lock.json generated
View File

@ -1926,8 +1926,7 @@
"base65536-test": { "base65536-test": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/base65536-test/-/base65536-test-1.1.2.tgz", "resolved": "https://registry.npmjs.org/base65536-test/-/base65536-test-1.1.2.tgz",
"integrity": "sha1-C+VeHrOXMYXTipCVGFvEAtQqMrM=", "integrity": "sha1-C+VeHrOXMYXTipCVGFvEAtQqMrM="
"dev": true
}, },
"bcrypt-pbkdf": { "bcrypt-pbkdf": {
"version": "1.0.2", "version": "1.0.2",

View File

@ -1,10 +1,9 @@
{ {
"name": "base65536", "name": "base65536",
"version": "3.0.1", "version": "3.0.0",
"description": "Unicode's answer to Base64", "description": "Unicode's answer to Base64",
"module": "dist/es6/base65536.js", "module": "dist/es6/base65536.js",
"main": "dist/cjs/base65536.js", "main": "dist/cjs/base65536.js",
"types": "typings/index.d.ts",
"browser": "dist/iife/base65536.js", "browser": "dist/iife/base65536.js",
"scripts": { "scripts": {
"jest": "jest", "jest": "jest",

View File

@ -42,7 +42,7 @@ pairStrings.forEach((pairString, r) => {
}) })
}) })
const encode = uint8Array => { export const encode = uint8Array => {
const length = uint8Array.length const length = uint8Array.length
let str = '' let str = ''
@ -80,7 +80,7 @@ const encode = uint8Array => {
return str return str
} }
const decode = str => { export const decode = str => {
const length = str.length const length = str.length
// This length is a guess. There's a chance we allocate one more byte here // This length is a guess. There's a chance we allocate one more byte here
@ -131,5 +131,3 @@ const decode = str => {
return new Uint8Array(uint8Array.buffer, 0, numUint8s) return new Uint8Array(uint8Array.buffer, 0, numUint8s)
} }
export { encode, decode }

2
typings/index.d.ts vendored
View File

@ -1,2 +0,0 @@
export declare const encode: (uint8Array: Uint8Array) => string;
export declare const decode: (str: string) => Uint8Array;