@visulima/object 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/LICENSE.md +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/object [1.0.6](https://github.com/visulima/visulima/compare/@visulima/object@1.0.5...@visulima/object@1.0.6) (2024-10-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* updated dev dependencies, updated packem to v1.0.7, fixed naming of some lint config files ([c071a9c](https://github.com/visulima/visulima/commit/c071a9c8e129014a962ff654a16f302ca18a5c67))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* updated dev dependencies ([736c6ce](https://github.com/visulima/visulima/commit/736c6ce7270b3e525a8ea9f79646a2a3fde47d4e))
|
|
10
|
+
|
|
11
|
+
## @visulima/object [1.0.5](https://github.com/visulima/visulima/compare/@visulima/object@1.0.4...@visulima/object@1.0.5) (2024-09-24)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update packem to v1 ([05f3bc9](https://github.com/visulima/visulima/commit/05f3bc960df10a1602e24f9066e2b0117951a877))
|
|
16
|
+
* updated esbuild from v0.23 to v0.24 ([3793010](https://github.com/visulima/visulima/commit/3793010d0d549c0d41f85dea04b8436251be5fe8))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* updated dev dependencies ([05edb67](https://github.com/visulima/visulima/commit/05edb671285b1cc42875223314b24212e6a12588))
|
|
21
|
+
|
|
1
22
|
## @visulima/object [1.0.4](https://github.com/visulima/visulima/compare/@visulima/object@1.0.3...@visulima/object@1.0.4) (2024-09-11)
|
|
2
23
|
|
|
3
24
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -66,7 +66,7 @@ Repository: sindresorhus/is-plain-obj
|
|
|
66
66
|
>
|
|
67
67
|
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
68
68
|
|
|
69
|
-
<!-- DEPENDENCIES -->
|
|
69
|
+
<!-- /DEPENDENCIES -->
|
|
70
70
|
|
|
71
71
|
<!-- TYPE_DEPENDENCIES -->
|
|
72
72
|
|
|
@@ -121,4 +121,4 @@ License: (MIT OR CC0-1.0)
|
|
|
121
121
|
By: Sindre Sorhus
|
|
122
122
|
Repository: sindresorhus/type-fest
|
|
123
123
|
|
|
124
|
-
<!-- TYPE_DEPENDENCIES -->
|
|
124
|
+
<!-- /TYPE_DEPENDENCIES -->
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var S=Object.defineProperty;var u=(a,l)=>S(a,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./packem_shared/omit-Cwc8rJUb.cjs"),R=require("./packem_shared/pick-CkwC0jUm.cjs"),y=require("./packem_shared/getProperty-D34HTBAJ.cjs"),T=require("./packem_shared/isPlainObject-BTLAczOE.cjs");var s={},o={},A;function L(){if(A)return o;A=1,Object.defineProperty(o,"__esModule",{value:!0}),o.isDocumentToRecurOn=o.flatten=o.unique=void 0;function a(f){return[...new Set(f)]}u(a,"unique"),o.unique=a;function l(f){return[].concat(...f)}u(l,"flatten"),o.flatten=l;function d(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&Object.keys(f).length}return u(d,"isDocumentToRecurOn"),o.isDocumentToRecurOn=d,o}u(L,"requireUtils");var O={},q;function w(){return q||(q=1,Object.defineProperty(O,"__esModule",{value:!0})),O}u(w,"requireTypes");var h;function x(){return h||(h=1,function(a){var l=s&&s.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:u(function(){return e[t]},"get")}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),d=s&&s.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),f=s&&s.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&l(e,r,t);return d(e,r),e},m=s&&s.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&l(e,r,t)};Object.defineProperty(a,"__esModule",{value:!0}),a.deepKeysFromList=a.deepKeys=void 0;const c=f(L());m(w(),a);function g(r,e){const t=P(e);return typeof r=="object"&&r!==null?b("",r,t):[]}u(g,"deepKeys"),a.deepKeys=g;function _(r,e){const t=P(e);return r.map(i=>typeof i=="object"&&i!==null?g(i,t):[])}u(_,"deepKeysFromList"),a.deepKeysFromList=_;function b(r,e,t){const i=Object.keys(e).map(n=>{const p=v(r,j(n,t));return t.expandNestedObjects&&c.isDocumentToRecurOn(e[n])||t.arrayIndexesAsKeys&&Array.isArray(e[n])&&e[n].length?b(p,e[n],t):t.expandArrayObjects&&Array.isArray(e[n])?M(e[n],p,t):t.ignoreEmptyArrays&&Array.isArray(e[n])&&!e[n].length?[]:p});return c.flatten(i)}u(b,"generateDeepKeysList");function M(r,e,t){let i=_(r,t);return r.length?r.length&&c.flatten(i).length===0?[e]:(i=i.map(n=>Array.isArray(n)&&n.length===0?[e]:n.map(p=>v(e,j(p,t)))),c.unique(c.flatten(i))):t.ignoreEmptyArraysWhenExpanding?[]:[e]}u(M,"processArrayKeys");function j(r,e){return e.escapeNestedDots?r.replace(/\./g,"\\."):r}u(j,"escapeNestedDotsIfSpecified");function v(r,e){return r?r+"."+e:e}u(v,"buildKeyName");function P(r){return{arrayIndexesAsKeys:!1,expandNestedObjects:!0,expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...r??{}}}u(P,"mergeOptions")}(s)),s}u(x,"requireDeeks");var D=x();exports.omit=E;exports.pick=R;exports.deleteProperty=y.deleteProperty;exports.escapePath=y.escapePath;exports.getProperty=y.getProperty;exports.hasProperty=y.hasProperty;exports.setProperty=y.setProperty;exports.isPlainObject=T;exports.deepKeys=D.deepKeys;exports.deepKeysFromList=D.deepKeysFromList;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x=Object.defineProperty;var u=(f,l)=>x(f,"name",{value:l,configurable:!0});import{default as N}from"./packem_shared/omit-Df-0bpNu.mjs";import{default as B}from"./packem_shared/pick-CS1_JC9v.mjs";import{deleteProperty as W,escapePath as K,getProperty as z,hasProperty as C,setProperty as G}from"./packem_shared/getProperty-C5Q_YpVO.mjs";import{default as J}from"./packem_shared/isPlainObject-CFPUbgRS.mjs";var s={},o={},A;function E(){if(A)return o;A=1,Object.defineProperty(o,"__esModule",{value:!0}),o.isDocumentToRecurOn=o.flatten=o.unique=void 0;function f(a){return[...new Set(a)]}u(f,"unique"),o.unique=f;function l(a){return[].concat(...a)}u(l,"flatten"),o.flatten=l;function y(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)&&Object.keys(a).length}return u(y,"isDocumentToRecurOn"),o.isDocumentToRecurOn=y,o}u(E,"requireUtils");var d={},m;function M(){return m||(m=1,Object.defineProperty(d,"__esModule",{value:!0})),d}u(M,"requireTypes");var D;function R(){return D||(D=1,function(f){var l=s&&s.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:u(function(){return e[t]},"get")}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),y=s&&s.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),a=s&&s.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&l(e,r,t);return y(e,r),e},P=s&&s.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&l(e,r,t)};Object.defineProperty(f,"__esModule",{value:!0}),f.deepKeysFromList=f.deepKeys=void 0;const c=a(E());P(M(),f);function O(r,e){const t=v(e);return typeof r=="object"&&r!==null?g("",r,t):[]}u(O,"deepKeys"),f.deepKeys=O;function _(r,e){const t=v(e);return r.map(i=>typeof i=="object"&&i!==null?O(i,t):[])}u(_,"deepKeysFromList"),f.deepKeysFromList=_;function g(r,e,t){const i=Object.keys(e).map(n=>{const p=j(r,b(n,t));return t.expandNestedObjects&&c.isDocumentToRecurOn(e[n])||t.arrayIndexesAsKeys&&Array.isArray(e[n])&&e[n].length?g(p,e[n],t):t.expandArrayObjects&&Array.isArray(e[n])?q(e[n],p,t):t.ignoreEmptyArrays&&Array.isArray(e[n])&&!e[n].length?[]:p});return c.flatten(i)}u(g,"generateDeepKeysList");function q(r,e,t){let i=_(r,t);return r.length?r.length&&c.flatten(i).length===0?[e]:(i=i.map(n=>Array.isArray(n)&&n.length===0?[e]:n.map(p=>j(e,b(p,t)))),c.unique(c.flatten(i))):t.ignoreEmptyArraysWhenExpanding?[]:[e]}u(q,"processArrayKeys");function b(r,e){return e.escapeNestedDots?r.replace(/\./g,"\\."):r}u(b,"escapeNestedDotsIfSpecified");function j(r,e){return r?r+"."+e:e}u(j,"buildKeyName");function v(r){return{arrayIndexesAsKeys:!1,expandNestedObjects:!0,expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...r??{}}}u(v,"mergeOptions")}(s)),s}u(R,"requireDeeks");var h=R();const S=h.deepKeys,T=h.deepKeysFromList;export{S as deepKeys,T as deepKeysFromList,W as deleteProperty,K as escapePath,z as getProperty,C as hasProperty,J as isPlainObject,N as omit,B as pick,G as setProperty};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/object",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Helper functions for working with objects and arrays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
"@anolilab/prettier-config": "^5.0.14",
|
|
82
82
|
"@anolilab/semantic-release-pnpm": "1.1.3",
|
|
83
83
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
84
|
-
"@arethetypeswrong/cli": "^0.16.
|
|
85
|
-
"@babel/core": "^7.25.
|
|
86
|
-
"@rushstack/eslint-plugin-security": "^0.8.
|
|
87
|
-
"@secretlint/secretlint-rule-preset-recommend": "^8.
|
|
84
|
+
"@arethetypeswrong/cli": "^0.16.4",
|
|
85
|
+
"@babel/core": "^7.25.7",
|
|
86
|
+
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
87
|
+
"@secretlint/secretlint-rule-preset-recommend": "^8.3.0",
|
|
88
88
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
89
89
|
"@types/node": "18.19.39",
|
|
90
|
-
"@visulima/packem": "
|
|
91
|
-
"@vitest/coverage-v8": "^2.
|
|
92
|
-
"@vitest/ui": "^2.
|
|
90
|
+
"@visulima/packem": "1.0.7",
|
|
91
|
+
"@vitest/coverage-v8": "^2.1.2",
|
|
92
|
+
"@vitest/ui": "^2.1.2",
|
|
93
93
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
94
94
|
"cross-env": "^7.0.3",
|
|
95
95
|
"deeks": "^3.1.1",
|
|
96
96
|
"dot-prop": "^9.0.0",
|
|
97
|
-
"esbuild": "
|
|
97
|
+
"esbuild": "0.24.0",
|
|
98
98
|
"eslint": "8.57.0",
|
|
99
99
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
100
100
|
"eslint-plugin-etc": "^2.0.3",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
"prettier": "^3.3.3",
|
|
108
108
|
"rimraf": "5.0.9",
|
|
109
109
|
"secretlint": "8.2.4",
|
|
110
|
-
"semantic-release": "^24.1.
|
|
110
|
+
"semantic-release": "^24.1.2",
|
|
111
111
|
"type-fest": "^4.26.1",
|
|
112
112
|
"typescript": "5.5.4",
|
|
113
|
-
"vitest": "^2.
|
|
113
|
+
"vitest": "^2.1.2"
|
|
114
114
|
},
|
|
115
115
|
"engines": {
|
|
116
116
|
"node": ">=18.* <=22.*"
|