Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aesthetic/utils

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/utils - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

dts/arrayLoop.d.ts

16

esm/index.js

@@ -64,4 +64,4 @@ import hash from 'string-hash';

while (i < l) {
var _key = keys[i];
callback(object[_key], _key);
var key = keys[i];
callback(object[key], key);
i += 1;

@@ -85,2 +85,3 @@ }

}
function deepMerge() {

@@ -109,2 +110,3 @@ for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {

var cache = {};
function generateHash(value) {

@@ -144,9 +146,10 @@ if (!cache[value]) {

var cache$2 = null;
function isSSR() {
function isDOM() {
if (process.env.AESTHETIC_SSR) {
return true;
return false;
}
if (cache$2 === null) {
cache$2 = typeof window === 'undefined' || typeof document === 'undefined';
cache$2 = typeof window !== 'undefined' || typeof document !== 'undefined';
}

@@ -183,2 +186,3 @@

export { arrayLoop, arrayReduce, attempt, createState, deepClone, deepMerge, generateHash, hyphenate, isObject, isSSR, objectCreate, objectLoop, objectReduce, toArray };
export { arrayLoop, arrayReduce, attempt, createState, deepClone, deepMerge, generateHash, hyphenate, isDOM, isObject, objectCreate, objectLoop, objectReduce, toArray };
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
Object.defineProperty(exports, '__esModule', {
value: true
});
var hash = require('string-hash');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopDefaultLegacy(e) {
return e && typeof e === 'object' && 'default' in e ? e : {
'default': e
};
}
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
var hash__default = _interopDefaultLegacy(hash);

@@ -72,4 +78,4 @@ function arrayLoop(array, callback, reverse) {

while (i < l) {
var _key = keys[i];
callback(object[_key], _key);
var key = keys[i];
callback(object[key], key);
i += 1;

@@ -93,2 +99,3 @@ }

}
function deepMerge() {

@@ -117,2 +124,3 @@ for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {

var cache = {};
function generateHash(value) {

@@ -152,9 +160,10 @@ if (!cache[value]) {

var cache$2 = null;
function isSSR() {
function isDOM() {
if (process.env.AESTHETIC_SSR) {
return true;
return false;
}
if (cache$2 === null) {
cache$2 = typeof window === 'undefined' || typeof document === 'undefined';
cache$2 = typeof window !== 'undefined' || typeof document !== 'undefined';
}

@@ -199,4 +208,4 @@

exports.hyphenate = hyphenate;
exports.isDOM = isDOM;
exports.isObject = isObject;
exports.isSSR = isSSR;
exports.objectCreate = objectCreate;

@@ -206,1 +215,2 @@ exports.objectLoop = objectLoop;

exports.toArray = toArray;
//# sourceMappingURL=index.js.map
{
"name": "@aesthetic/utils",
"version": "0.5.1",
"version": "0.5.2",
"description": "Utility functions for Aesthetic.",

@@ -14,3 +14,3 @@ "keywords": [

"module": "./esm/index.js",
"types": "./lib/index.d.ts",
"types": "./dts/index.d.ts",
"sideEffects": false,

@@ -27,3 +27,6 @@ "publishConfig": {

},
"gitHead": "72edb2d4813718308179a03f66794c59baace701"
"packemon": {
"platform": "browser"
},
"gitHead": "7aa8110c7c8c49a6feb263abc8f3390c1c59125c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc