Skip to content

Commit

Permalink
Removing a reference error for node <=16
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jun 12, 2024
1 parent 9980d75 commit 88aacb2
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 24 deletions.
6 changes: 2 additions & 4 deletions dist/haro.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 15.0.0
* @version 15.0.1
*/
'use strict';

Expand Down Expand Up @@ -36,12 +36,10 @@ const INT_16 = 16;
const r = [INT_8, INT_9, STRING_A, STRING_B];

/* istanbul ignore next */
function shallowClone (arg) {
function clone (arg) {
return JSON.parse(JSON.stringify(arg, null, INT_0));
}

const clone = structuredClone ?? shallowClone;

function each (arr = [], fn) {
for (const [idx, value] of arr.entries()) {
fn(value, idx);
Expand Down
6 changes: 2 additions & 4 deletions dist/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 15.0.0
* @version 15.0.1
*/
const STRING_COMMA = ",";
const STRING_EMPTY = "";
Expand Down Expand Up @@ -32,12 +32,10 @@ const INT_16 = 16;/* istanbul ignore next */
const r = [INT_8, INT_9, STRING_A, STRING_B];

/* istanbul ignore next */
function shallowClone (arg) {
function clone (arg) {
return JSON.parse(JSON.stringify(arg, null, INT_0));
}

const clone = structuredClone ?? shallowClone;

function each (arr = [], fn) {
for (const [idx, value] of arr.entries()) {
fn(value, idx);
Expand Down
4 changes: 2 additions & 2 deletions dist/haro.min.js

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

2 changes: 1 addition & 1 deletion dist/haro.min.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions dist/haro.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 15.0.0
* @version 15.0.1
*/
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.lru={}));})(this,(function(exports){'use strict';const STRING_COMMA = ",";
const STRING_EMPTY = "";
Expand Down Expand Up @@ -32,12 +32,10 @@ const INT_16 = 16;/* istanbul ignore next */
const r = [INT_8, INT_9, STRING_A, STRING_B];

/* istanbul ignore next */
function shallowClone (arg) {
function clone (arg) {
return JSON.parse(JSON.stringify(arg, null, INT_0));
}

const clone = structuredClone ?? shallowClone;

function each (arr = [], fn) {
for (const [idx, value] of arr.entries()) {
fn(value, idx);
Expand Down
Loading

0 comments on commit 88aacb2

Please sign in to comment.