Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
UmamiAppearance committed Sep 12, 2022
1 parent 1ede83b commit 0c29172
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions dist/BrowserSHAObj.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2554,7 +2554,7 @@ class BaseEx {
/*
* [BrowserSHAObj]{@link https://github.com/UmamiAppearance/BrowserSHAObj}
*
* @version 0.2.0
* @version 0.2.1
* @author UmamiAppearance [mail@umamiappearance.eu]
* @license GPL-3.0
*/
Expand All @@ -2572,7 +2572,7 @@ const BASE_EX = new BaseEx();
* different digest methods.
* see: https://docs.python.org/3/library/hashlib.html
*/
class SHAObj {
class BrowserSHAObj {

#algorithm = null;
#bits = null;
Expand Down Expand Up @@ -2631,7 +2631,7 @@ class SHAObj {
* @returns {Object} - A SHAObj instance.
*/
static async new(algorithm="SHA-256", input=null) {
const shaObj = new SHAObj(algorithm);
const shaObj = new BrowserSHAObj(algorithm);
if (input !== null) {
await shaObj.update(input);
}
Expand Down Expand Up @@ -2668,7 +2668,7 @@ class SHAObj {
? Uint8Array.from(this.#input)
: null;

return SHAObj.new(this.#algorithm, input);
return BrowserSHAObj.new(this.#algorithm, input);
}


Expand Down Expand Up @@ -2786,4 +2786,4 @@ class SHAObj {
}
}

export { SHAObj as default };
export { BrowserSHAObj as default };
2 changes: 1 addition & 1 deletion dist/BrowserSHAObj.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/BrowserSHAObj.iife.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var SHAObj = (function () {
var BrowserSHAObj = (function () {
'use strict';

/**
Expand Down Expand Up @@ -2557,7 +2557,7 @@ var SHAObj = (function () {
/*
* [BrowserSHAObj]{@link https://github.com/UmamiAppearance/BrowserSHAObj}
*
* @version 0.2.0
* @version 0.2.1
* @author UmamiAppearance [mail@umamiappearance.eu]
* @license GPL-3.0
*/
Expand All @@ -2575,7 +2575,7 @@ var SHAObj = (function () {
* different digest methods.
* see: https://docs.python.org/3/library/hashlib.html
*/
class SHAObj {
class BrowserSHAObj {

#algorithm = null;
#bits = null;
Expand Down Expand Up @@ -2634,7 +2634,7 @@ var SHAObj = (function () {
* @returns {Object} - A SHAObj instance.
*/
static async new(algorithm="SHA-256", input=null) {
const shaObj = new SHAObj(algorithm);
const shaObj = new BrowserSHAObj(algorithm);
if (input !== null) {
await shaObj.update(input);
}
Expand Down Expand Up @@ -2671,7 +2671,7 @@ var SHAObj = (function () {
? Uint8Array.from(this.#input)
: null;

return SHAObj.new(this.#algorithm, input);
return BrowserSHAObj.new(this.#algorithm, input);
}


Expand Down Expand Up @@ -2789,6 +2789,6 @@ var SHAObj = (function () {
}
}

return SHAObj;
return BrowserSHAObj;

})();
4 changes: 2 additions & 2 deletions dist/BrowserSHAObj.iife.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-sha-obj",
"version": "0.2.0",
"version": "0.2.1",
"description": "JavaScript implementation of SHA (1/256/384/512) checksum calculation for the browser.",
"browser": "./dist/BrowserSHAObj.esm.js",
"type": "module",
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ export default {
output: [
{
format: "iife",
name: "SHAObj",
name: "BrowserSHAObj",
file: "dist/BrowserSHAObj.iife.js"
},
{
format: "iife",
name: "SHAObj",
name: "BrowserSHAObj",
file: "dist/BrowserSHAObj.iife.min.js",
plugins: [terser()]
},
{
format: "es",
name: "SHAObj",
name: "BrowserSHAObj",
file: "dist/BrowserSHAObj.esm.js"
},
{
format: "es",
name: "SHAObj",
name: "BrowserSHAObj",
file: "dist/BrowserSHAObj.esm.min.js",
plugins: [terser()]
},
Expand Down
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* [BrowserSHAObj]{@link https://github.com/UmamiAppearance/BrowserSHAObj}
*
* @version 0.2.0
* @version 0.2.1
* @author UmamiAppearance [mail@umamiappearance.eu]
* @license GPL-3.0
*/
Expand All @@ -21,7 +21,7 @@ const BASE_EX = new BaseEx();
* different digest methods.
* see: https://docs.python.org/3/library/hashlib.html
*/
class SHAObj {
class BrowserSHAObj {

#algorithm = null;
#bits = null;
Expand Down Expand Up @@ -80,7 +80,7 @@ class SHAObj {
* @returns {Object} - A SHAObj instance.
*/
static async new(algorithm="SHA-256", input=null) {
const shaObj = new SHAObj(algorithm);
const shaObj = new BrowserSHAObj(algorithm);
if (input !== null) {
await shaObj.update(input);
}
Expand Down Expand Up @@ -117,7 +117,7 @@ class SHAObj {
? Uint8Array.from(this.#input)
: null;

return SHAObj.new(this.#algorithm, input);
return BrowserSHAObj.new(this.#algorithm, input);
}


Expand Down Expand Up @@ -235,4 +235,4 @@ class SHAObj {
}
}

export default SHAObj;
export default BrowserSHAObj;

0 comments on commit 0c29172

Please sign in to comment.