Skip to content

Commit

Permalink
(feat) publish regex pr to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
khalby786 committed Mar 29, 2021
1 parent c1481c2 commit 31d0744
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions jsoning.js.org

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsoning",
"version": "0.10.20",
"version": "0.10.21",
"description": "A simple key-value JSON-based persistent lightweight database.",
"main": "src/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/jsoning.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Jsoning {
}

// operand tricks
if ( typeof operand !== "number" ) {
if (typeof operand !== "number") {
throw new TypeError("Operand must be a number type!");
}

Expand All @@ -239,7 +239,7 @@ class Jsoning {
if (Object.prototype.hasOwnProperty.call(db, key)) {
// key exists
let value = db[key];
if ( typeof value !== "number" ) {
if (typeof value !== "number") {
throw new Error(
"Key of existing element must be a number for Jsoning#math to happen."
);
Expand Down

0 comments on commit 31d0744

Please sign in to comment.