@aesthetic/utils
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -7,4 +7,2 @@ /** | ||
import { arrayReduce } from './arrayReduce'; | ||
import { attempt } from './attempt'; | ||
import { createState } from './createState'; | ||
import { deepClone } from './deepClone'; | ||
@@ -23,3 +21,3 @@ import { deepMerge } from './deepMerge'; | ||
export * from './types'; | ||
export { arrayLoop, arrayReduce, attempt, createState, deepClone, deepMerge, generateHash, hyphenate, isDOM, isObject, joinQueries, nonce, objectCreate, objectLoop, objectReduce, toArray, }; | ||
export { arrayLoop, arrayReduce, deepClone, deepMerge, generateHash, hyphenate, isDOM, isObject, joinQueries, nonce, objectCreate, objectLoop, objectReduce, toArray, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -38,28 +38,2 @@ // Bundled with Packemon: https://packemon.dev | ||
function attempt(callback) { | ||
try { | ||
return callback(); | ||
} catch { | ||
return null; | ||
} | ||
} | ||
function createState(defaultValue) { | ||
let value = defaultValue; | ||
return { | ||
get() { | ||
return value; | ||
}, | ||
reset() { | ||
value = undefined; | ||
}, | ||
set(nextValue) { | ||
value = nextValue; | ||
} | ||
}; | ||
} | ||
function isObject(value) { | ||
@@ -212,3 +186,3 @@ return value !== null && !Array.isArray(value) && typeof value === 'object'; | ||
export { arrayLoop, arrayReduce, attempt, createState, deepClone, deepMerge, generateHash, hyphenate, isDOM, isObject, joinQueries, nonce, objectCreate, objectLoop, objectReduce, toArray }; | ||
export { arrayLoop, arrayReduce, deepClone, deepMerge, generateHash, hyphenate, isDOM, isObject, joinQueries, nonce, objectCreate, objectLoop, objectReduce, toArray }; | ||
//# sourceMappingURL=index.js.map |
@@ -53,28 +53,2 @@ // Bundled with Packemon: https://packemon.dev | ||
function attempt(callback) { | ||
try { | ||
return callback(); | ||
} catch { | ||
return null; | ||
} | ||
} | ||
function createState(defaultValue) { | ||
let value = defaultValue; | ||
return { | ||
get() { | ||
return value; | ||
}, | ||
reset() { | ||
value = undefined; | ||
}, | ||
set(nextValue) { | ||
value = nextValue; | ||
} | ||
}; | ||
} | ||
function isObject(value) { | ||
@@ -229,4 +203,2 @@ return value !== null && !Array.isArray(value) && typeof value === 'object'; | ||
exports.arrayReduce = arrayReduce; | ||
exports.attempt = attempt; | ||
exports.createState = createState; | ||
exports.deepClone = deepClone; | ||
@@ -233,0 +205,0 @@ exports.deepMerge = deepMerge; |
{ | ||
"name": "@aesthetic/utils", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "Utility functions for Aesthetic.", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6b76391658e4963faf8250de699d9bebbc5d1ee7" | ||
"gitHead": "be9b8798efae2466c8a534f091c87b5fd6ac5313" | ||
} |
@@ -8,4 +8,2 @@ /** | ||
import { arrayReduce } from './arrayReduce'; | ||
import { attempt } from './attempt'; | ||
import { createState } from './createState'; | ||
import { deepClone } from './deepClone'; | ||
@@ -29,4 +27,2 @@ import { deepMerge } from './deepMerge'; | ||
arrayReduce, | ||
attempt, | ||
createState, | ||
deepClone, | ||
@@ -33,0 +29,0 @@ deepMerge, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29511
39
560