Skip to content

Commit 31d0744

Browse files
committed
(feat) publish regex pr to npm
1 parent c1481c2 commit 31d0744

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

jsoning.js.org

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsoning",
3-
"version": "0.10.20",
3+
"version": "0.10.21",
44
"description": "A simple key-value JSON-based persistent lightweight database.",
55
"main": "src/index.js",
66
"scripts": {

src/jsoning.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Jsoning {
228228
}
229229

230230
// operand tricks
231-
if ( typeof operand !== "number" ) {
231+
if (typeof operand !== "number") {
232232
throw new TypeError("Operand must be a number type!");
233233
}
234234

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

0 commit comments

Comments
 (0)