@bemoje/object 2.2.2 → 3.0.0

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.
Files changed (2) hide show
  1. package/README.md +74 -55
  2. package/package.json +11 -641
package/README.md CHANGED
@@ -1,10 +1,79 @@
1
1
  # @bemoje/object
2
2
 
3
- Comprehensive object manipulation utilities for property definition, traversal, filtering, mapping, prototype
4
- chains, and descriptor management.
5
-
6
- [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/)
7
- [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
3
+ Comprehensive object manipulation utilities for property definition, traversal, filtering, mapping, prototype chains, and descriptor management.
4
+
5
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/) [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
6
+
7
+ ## Exports
8
+
9
+ <!-- EXPORTS_START -->
10
+
11
+ - **arrAssign**: Array assignment function that merges arrays excluding null and undefined values.
12
+ - **className**: Get the class name of an object from its constructor.
13
+ - **constructorOf**: Returns the constructor of the given object.
14
+ - **createArrayMerger**: Creates a function that merges arrays based on a predicate function.
15
+ - **createObjectMerger**: Creates a function that merges objects based on a predicate function.
16
+ - **defineAccessors** on an object with enhanced descriptor handling.
17
+ - **defineGetter**: Define a getter property on an object with enhanced descriptor handling.
18
+ - **defineLazyProperty**: Define a lazy property that evaluates its getter on first access and then caches the value.
19
+ - **defineMethod**: Define a method property on an object with enhanced descriptor handling.
20
+ - **defineProperty**: Utility function for defining properties on objects with enhanced descriptor handling.
21
+ - **defineSetter**: Define a setter property on an object with enhanced descriptor handling.
22
+ - **defineValue**: Define a value property on an object with enhanced descriptor handling.
23
+ - **deleteNullishPropsMutable**: Mutably delete enumerable properties with null or undefined values.
24
+ - **entriesOf**: Same as Object.entries except the keys are typed as keyof T.
25
+ - **filterObject**: Filter an object's own enumerable properties by predicate.
26
+ - **filterObjectMutable**: Mutably filter an object's own properties based on a given predicate.
27
+ - **getClassChain**.
28
+ - **getConfigurableMethodOrGetterKeys**: Returns an array of keys representing configurable methods or getters of an object.
29
+ - **getKeys**: Returns an array of the own property keys of an object. Every combination of ways to toggle enumerable/non-enumerable/strings/symbols are available. Ignoring specific keys is also possible.
30
+ - **getKeysPreset**: Creates a preset function for getting object keys with specific filtering options.
31
+ - **getOwnProperty**: Returns a given own property value of a given object.
32
+ - **getPrototypeChain**: Get the prototype chain of any object. Returns prototype objects, not constructors.
33
+ - **getSuperClass**: Get the immediate superclass of a target. Returns Object if no meaningful superclass exists.
34
+ - **getSuperClasses**. Simpler version without overloads - just returns the class chain.
35
+ - **hasOwnProperty**: Object.prototype.hasOwnProperty.call
36
+ - **hasProperty**: Determines if a property is defined on an object, including 'own' and prototype chain.
37
+ - **hasPrototypeChainProperty**: Determines if a property is defined on an object's prototype prototype chain, not including the object itself.
38
+ - **inheritPrototypeMembers**: Copies prototype members from a source constructor to a target constructor, excluding specified keys.
39
+ - **inheritStaticMembers**: Copies static members from a source constructor to a target constructor, excluding specified keys.
40
+ - **isAccessorDescriptor**: Check if the given descriptor is an accessor descriptor.
41
+ - **isEnumerable**: Check if the property is enumerable.
42
+ - **isMethodValueDescriptor**.
43
+ - **isValueDescriptor**: Check if the given descriptor is a value descriptor.
44
+ - **iterableFirstElement**: Returns the first element of an iterable object.
45
+ - **iterateObject** - Prevents circular reference loops - Preserves traversal order
46
+ - **keysOf**: Same as Object.keys except the keys are typed as string keys of T.
47
+ - **mapObjectEntries**: Maps over an object's entries, transforming both keys and values using the provided function.
48
+ - **mapObjectKeys**: Maps over an object's keys, transforming each key using the provided function while preserving values.
49
+ - **objAssign**: Like Object.assign, but only copies source object property values != null.
50
+ - **objDeepFreeze**: Deep freezes an object. Note: Deep recursion may cause stack overflow for very deeply nested objects.
51
+ - **objDefineLazyProperty**: Defines a lazy property on an object. The property will be lazily evaluated on the first access and then cached for subsequent accesses. The property is both enumerable and configurable.
52
+ - **objDelete**: Deletes a property from an object and returns the modified object.
53
+ - **objGet**: Retrieves the value associated with the specified key from an object.
54
+ - **objGetOrDefault**: Gets a property value from an object or creates it using a factory function if it doesn't exist.
55
+ - **objGetOrDefaultValue**: This function attempts to retrieve a value from an object using a provided key. If the key does not exist in the object, it sets the provided default value in the object and returns it.
56
+ - **objHas**: Checks if an object has a specific key.
57
+ - **objOmitKeysMutable**: Deletes the specified keys from an object in a mutable way.
58
+ - **objPropertyValueToGetter**: Converts the specified properties of an object into getter functions.
59
+ - **objSet**: Sets a value for a key in an object and returns the value.
60
+ - **objSize**: Returns the number of enumerable keys in an object.
61
+ - **objSortKeys**: Sorts the keys of an object in alphabetical order unless a custom compare function is provided.
62
+ - **objToMap**: Converts an object to a Map.
63
+ - **objUpdate**: Updates the value of a specific key in an object using a callback function.
64
+ - **objUpdatePropertyDescriptors**: Updates the property descriptors of the specified properties on the given object.
65
+ - **propertyIsEnumerable**: Calls Object.prototype.propertyIsEnumerable on the given object.
66
+ - **setEnumerable**: Sets the enumerable property of the specified properties of an object to true.
67
+ - **setNonConfigurable**: Sets the specified properties of an object as non-configurable.
68
+ - **setNonEnumerable**: Sets the specified properties of an object as non-enumerable.
69
+ - **setNonWritable**: Sets the specified properties of an object to be non-writable.
70
+ - **setWritable**: Sets the specified properties of an object to be non-writable.
71
+ - **sortKeys**: Sort an object's keys.
72
+ - **sortKeysLike**: Sorts the keys of an object in the given order.
73
+ - **staticClassKeysOf**: Returns the static string-property keys of a class but without the natively built-in keys 'length', 'name', and 'prototype'.
74
+ - **valuesOf**: Get the values of an object with type-safe return value.
75
+
76
+ <!-- EXPORTS_END -->
8
77
 
9
78
  ## Installation
10
79
 
@@ -120,53 +189,3 @@ keysOf(obj) // ['name', 'age'] (typed as ('name' | 'age')[])
120
189
  valuesOf(obj) // ['Alice', 30]
121
190
  entriesOf(obj) // [['name', 'Alice'], ['age', 30]]
122
191
  ```
123
-
124
- ## API Reference
125
-
126
- | Export | Description |
127
- | --------------------------- | --------------------------------------------------------- |
128
- | `objAssign` | Object.assign that skips null/undefined values |
129
- | `objDeepFreeze` | Deep freeze an object recursively |
130
- | `objSortKeys` | Sort object keys alphabetically or with custom comparator |
131
- | `objDelete` | Delete a key and return the object |
132
- | `objReduce` | Reduce over object entries |
133
- | `objForEach` | Iterate over object entries |
134
- | `objIsEmpty` | Check if object has no enumerable keys |
135
- | `objSize` | Count enumerable keys |
136
- | `objGet` | Type-safe property getter |
137
- | `objSet` | Set a property and return the value |
138
- | `objHas` | Check if key exists |
139
- | `objUpdate` | Update a value with a callback |
140
- | `objGetOrDefault` | Get or create value with factory function |
141
- | `objGetOrDefaultValue` | Get or set a default value |
142
- | `objToMap` | Convert object to Map |
143
- | `objOmitKeysMutable` | Delete multiple keys from an object |
144
- | `filterObject` | Filter object properties by predicate |
145
- | `filterObjectMutable` | Filter object in-place |
146
- | `mapObject` | Map over object values |
147
- | `mapObjectKeys` | Map over object keys |
148
- | `mapObjectEntries` | Map over object entries (both key and value) |
149
- | `defineGetter` | Define a getter property |
150
- | `defineSetter` | Define a setter property |
151
- | `defineAccessors` | Define getter and setter |
152
- | `defineMethod` | Define a method property |
153
- | `defineValue` | Define a value property |
154
- | `defineProperty` | Define a property with descriptor |
155
- | `defineLazyProperty` | Define a lazy-evaluated cached property |
156
- | `keysOf` | Typed Object.keys |
157
- | `valuesOf` | Typed Object.values |
158
- | `entriesOf` | Typed Object.entries |
159
- | `getPrototypeChain` | Get prototype chain as array |
160
- | `getClassChain` | Get class constructor chain |
161
- | `getSuperClass` | Get immediate superclass |
162
- | `getSuperClasses` | Get all superclasses |
163
- | `inheritPrototypeMembers` | Copy prototype members between classes |
164
- | `inheritStaticMembers` | Copy static members between classes |
165
- | `iterateObject` | Depth-first object traversal generator |
166
- | `deleteNullishPropsMutable` | Remove null/undefined properties |
167
- | `className` | Get class name from an instance |
168
- | `constructorOf` | Get constructor of an object |
169
- | `hasOwnProperty` | Safe hasOwnProperty check |
170
- | `hasProperty` | Check own + prototype chain |
171
- | `getKeys` | Get keys with filtering options |
172
- | `OptionsConfigurator` | Builder pattern for typed options with defaults |
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@bemoje/object",
3
- "version": "2.2.2",
3
+ "version": "3.0.0",
4
4
  "description": "Comprehensive object manipulation utilities for property definition, traversal, filtering, mapping, prototype chains, and descriptor management.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "dependencies": {},
7
11
  "keywords": [
8
12
  "object",
9
13
  "property",
@@ -35,637 +39,7 @@
35
39
  "default": "./lib/index.cjs"
36
40
  }
37
41
  },
38
- "./arrAssign": {
39
- "import": {
40
- "types": "./lib/index.d.ts",
41
- "default": "./lib/index.js"
42
- },
43
- "require": {
44
- "types": "./lib/index.d.cts",
45
- "default": "./lib/index.cjs"
46
- }
47
- },
48
- "./className": {
49
- "import": {
50
- "types": "./lib/index.d.ts",
51
- "default": "./lib/index.js"
52
- },
53
- "require": {
54
- "types": "./lib/index.d.cts",
55
- "default": "./lib/index.cjs"
56
- }
57
- },
58
- "./constructorOf": {
59
- "import": {
60
- "types": "./lib/index.d.ts",
61
- "default": "./lib/index.js"
62
- },
63
- "require": {
64
- "types": "./lib/index.d.cts",
65
- "default": "./lib/index.cjs"
66
- }
67
- },
68
- "./createArrayMerger": {
69
- "import": {
70
- "types": "./lib/index.d.ts",
71
- "default": "./lib/index.js"
72
- },
73
- "require": {
74
- "types": "./lib/index.d.cts",
75
- "default": "./lib/index.cjs"
76
- }
77
- },
78
- "./createObjectMerger": {
79
- "import": {
80
- "types": "./lib/index.d.ts",
81
- "default": "./lib/index.js"
82
- },
83
- "require": {
84
- "types": "./lib/index.d.cts",
85
- "default": "./lib/index.cjs"
86
- }
87
- },
88
- "./defineAccessors": {
89
- "import": {
90
- "types": "./lib/index.d.ts",
91
- "default": "./lib/index.js"
92
- },
93
- "require": {
94
- "types": "./lib/index.d.cts",
95
- "default": "./lib/index.cjs"
96
- }
97
- },
98
- "./defineGetter": {
99
- "import": {
100
- "types": "./lib/index.d.ts",
101
- "default": "./lib/index.js"
102
- },
103
- "require": {
104
- "types": "./lib/index.d.cts",
105
- "default": "./lib/index.cjs"
106
- }
107
- },
108
- "./defineLazyProperty": {
109
- "import": {
110
- "types": "./lib/index.d.ts",
111
- "default": "./lib/index.js"
112
- },
113
- "require": {
114
- "types": "./lib/index.d.cts",
115
- "default": "./lib/index.cjs"
116
- }
117
- },
118
- "./defineMethod": {
119
- "import": {
120
- "types": "./lib/index.d.ts",
121
- "default": "./lib/index.js"
122
- },
123
- "require": {
124
- "types": "./lib/index.d.cts",
125
- "default": "./lib/index.cjs"
126
- }
127
- },
128
- "./defineProperty": {
129
- "import": {
130
- "types": "./lib/index.d.ts",
131
- "default": "./lib/index.js"
132
- },
133
- "require": {
134
- "types": "./lib/index.d.cts",
135
- "default": "./lib/index.cjs"
136
- }
137
- },
138
- "./defineSetter": {
139
- "import": {
140
- "types": "./lib/index.d.ts",
141
- "default": "./lib/index.js"
142
- },
143
- "require": {
144
- "types": "./lib/index.d.cts",
145
- "default": "./lib/index.cjs"
146
- }
147
- },
148
- "./defineValue": {
149
- "import": {
150
- "types": "./lib/index.d.ts",
151
- "default": "./lib/index.js"
152
- },
153
- "require": {
154
- "types": "./lib/index.d.cts",
155
- "default": "./lib/index.cjs"
156
- }
157
- },
158
- "./deleteNullishPropsMutable": {
159
- "import": {
160
- "types": "./lib/index.d.ts",
161
- "default": "./lib/index.js"
162
- },
163
- "require": {
164
- "types": "./lib/index.d.cts",
165
- "default": "./lib/index.cjs"
166
- }
167
- },
168
- "./entriesOf": {
169
- "import": {
170
- "types": "./lib/index.d.ts",
171
- "default": "./lib/index.js"
172
- },
173
- "require": {
174
- "types": "./lib/index.d.cts",
175
- "default": "./lib/index.cjs"
176
- }
177
- },
178
- "./filterObject": {
179
- "import": {
180
- "types": "./lib/index.d.ts",
181
- "default": "./lib/index.js"
182
- },
183
- "require": {
184
- "types": "./lib/index.d.cts",
185
- "default": "./lib/index.cjs"
186
- }
187
- },
188
- "./filterObjectMutable": {
189
- "import": {
190
- "types": "./lib/index.d.ts",
191
- "default": "./lib/index.js"
192
- },
193
- "require": {
194
- "types": "./lib/index.d.cts",
195
- "default": "./lib/index.cjs"
196
- }
197
- },
198
- "./getClassChain": {
199
- "import": {
200
- "types": "./lib/index.d.ts",
201
- "default": "./lib/index.js"
202
- },
203
- "require": {
204
- "types": "./lib/index.d.cts",
205
- "default": "./lib/index.cjs"
206
- }
207
- },
208
- "./getConfigurableMethodOrGetterKeys": {
209
- "import": {
210
- "types": "./lib/index.d.ts",
211
- "default": "./lib/index.js"
212
- },
213
- "require": {
214
- "types": "./lib/index.d.cts",
215
- "default": "./lib/index.cjs"
216
- }
217
- },
218
- "./getKeys": {
219
- "import": {
220
- "types": "./lib/index.d.ts",
221
- "default": "./lib/index.js"
222
- },
223
- "require": {
224
- "types": "./lib/index.d.cts",
225
- "default": "./lib/index.cjs"
226
- }
227
- },
228
- "./getKeysPreset": {
229
- "import": {
230
- "types": "./lib/index.d.ts",
231
- "default": "./lib/index.js"
232
- },
233
- "require": {
234
- "types": "./lib/index.d.cts",
235
- "default": "./lib/index.cjs"
236
- }
237
- },
238
- "./getOwnProperty": {
239
- "import": {
240
- "types": "./lib/index.d.ts",
241
- "default": "./lib/index.js"
242
- },
243
- "require": {
244
- "types": "./lib/index.d.cts",
245
- "default": "./lib/index.cjs"
246
- }
247
- },
248
- "./getPrototypeChain": {
249
- "import": {
250
- "types": "./lib/index.d.ts",
251
- "default": "./lib/index.js"
252
- },
253
- "require": {
254
- "types": "./lib/index.d.cts",
255
- "default": "./lib/index.cjs"
256
- }
257
- },
258
- "./getSuperClass": {
259
- "import": {
260
- "types": "./lib/index.d.ts",
261
- "default": "./lib/index.js"
262
- },
263
- "require": {
264
- "types": "./lib/index.d.cts",
265
- "default": "./lib/index.cjs"
266
- }
267
- },
268
- "./getSuperClasses": {
269
- "import": {
270
- "types": "./lib/index.d.ts",
271
- "default": "./lib/index.js"
272
- },
273
- "require": {
274
- "types": "./lib/index.d.cts",
275
- "default": "./lib/index.cjs"
276
- }
277
- },
278
- "./hasOwnProperty": {
279
- "import": {
280
- "types": "./lib/index.d.ts",
281
- "default": "./lib/index.js"
282
- },
283
- "require": {
284
- "types": "./lib/index.d.cts",
285
- "default": "./lib/index.cjs"
286
- }
287
- },
288
- "./hasProperty": {
289
- "import": {
290
- "types": "./lib/index.d.ts",
291
- "default": "./lib/index.js"
292
- },
293
- "require": {
294
- "types": "./lib/index.d.cts",
295
- "default": "./lib/index.cjs"
296
- }
297
- },
298
- "./hasPrototypeChainProperty": {
299
- "import": {
300
- "types": "./lib/index.d.ts",
301
- "default": "./lib/index.js"
302
- },
303
- "require": {
304
- "types": "./lib/index.d.cts",
305
- "default": "./lib/index.cjs"
306
- }
307
- },
308
- "./inheritPrototypeMembers": {
309
- "import": {
310
- "types": "./lib/index.d.ts",
311
- "default": "./lib/index.js"
312
- },
313
- "require": {
314
- "types": "./lib/index.d.cts",
315
- "default": "./lib/index.cjs"
316
- }
317
- },
318
- "./inheritStaticMembers": {
319
- "import": {
320
- "types": "./lib/index.d.ts",
321
- "default": "./lib/index.js"
322
- },
323
- "require": {
324
- "types": "./lib/index.d.cts",
325
- "default": "./lib/index.cjs"
326
- }
327
- },
328
- "./isAccessorDescriptor": {
329
- "import": {
330
- "types": "./lib/index.d.ts",
331
- "default": "./lib/index.js"
332
- },
333
- "require": {
334
- "types": "./lib/index.d.cts",
335
- "default": "./lib/index.cjs"
336
- }
337
- },
338
- "./isEnumerable": {
339
- "import": {
340
- "types": "./lib/index.d.ts",
341
- "default": "./lib/index.js"
342
- },
343
- "require": {
344
- "types": "./lib/index.d.cts",
345
- "default": "./lib/index.cjs"
346
- }
347
- },
348
- "./isMethodValueDescriptor": {
349
- "import": {
350
- "types": "./lib/index.d.ts",
351
- "default": "./lib/index.js"
352
- },
353
- "require": {
354
- "types": "./lib/index.d.cts",
355
- "default": "./lib/index.cjs"
356
- }
357
- },
358
- "./isValueDescriptor": {
359
- "import": {
360
- "types": "./lib/index.d.ts",
361
- "default": "./lib/index.js"
362
- },
363
- "require": {
364
- "types": "./lib/index.d.cts",
365
- "default": "./lib/index.cjs"
366
- }
367
- },
368
- "./iterableFirstElement": {
369
- "import": {
370
- "types": "./lib/index.d.ts",
371
- "default": "./lib/index.js"
372
- },
373
- "require": {
374
- "types": "./lib/index.d.cts",
375
- "default": "./lib/index.cjs"
376
- }
377
- },
378
- "./iterateObject": {
379
- "import": {
380
- "types": "./lib/index.d.ts",
381
- "default": "./lib/index.js"
382
- },
383
- "require": {
384
- "types": "./lib/index.d.cts",
385
- "default": "./lib/index.cjs"
386
- }
387
- },
388
- "./keysOf": {
389
- "import": {
390
- "types": "./lib/index.d.ts",
391
- "default": "./lib/index.js"
392
- },
393
- "require": {
394
- "types": "./lib/index.d.cts",
395
- "default": "./lib/index.cjs"
396
- }
397
- },
398
- "./mapObjectEntries": {
399
- "import": {
400
- "types": "./lib/index.d.ts",
401
- "default": "./lib/index.js"
402
- },
403
- "require": {
404
- "types": "./lib/index.d.cts",
405
- "default": "./lib/index.cjs"
406
- }
407
- },
408
- "./mapObjectKeys": {
409
- "import": {
410
- "types": "./lib/index.d.ts",
411
- "default": "./lib/index.js"
412
- },
413
- "require": {
414
- "types": "./lib/index.d.cts",
415
- "default": "./lib/index.cjs"
416
- }
417
- },
418
- "./objAssign": {
419
- "import": {
420
- "types": "./lib/index.d.ts",
421
- "default": "./lib/index.js"
422
- },
423
- "require": {
424
- "types": "./lib/index.d.cts",
425
- "default": "./lib/index.cjs"
426
- }
427
- },
428
- "./objDeepFreeze": {
429
- "import": {
430
- "types": "./lib/index.d.ts",
431
- "default": "./lib/index.js"
432
- },
433
- "require": {
434
- "types": "./lib/index.d.cts",
435
- "default": "./lib/index.cjs"
436
- }
437
- },
438
- "./objDefineLazyProperty": {
439
- "import": {
440
- "types": "./lib/index.d.ts",
441
- "default": "./lib/index.js"
442
- },
443
- "require": {
444
- "types": "./lib/index.d.cts",
445
- "default": "./lib/index.cjs"
446
- }
447
- },
448
- "./objDelete": {
449
- "import": {
450
- "types": "./lib/index.d.ts",
451
- "default": "./lib/index.js"
452
- },
453
- "require": {
454
- "types": "./lib/index.d.cts",
455
- "default": "./lib/index.cjs"
456
- }
457
- },
458
- "./objGet": {
459
- "import": {
460
- "types": "./lib/index.d.ts",
461
- "default": "./lib/index.js"
462
- },
463
- "require": {
464
- "types": "./lib/index.d.cts",
465
- "default": "./lib/index.cjs"
466
- }
467
- },
468
- "./objGetOrDefault": {
469
- "import": {
470
- "types": "./lib/index.d.ts",
471
- "default": "./lib/index.js"
472
- },
473
- "require": {
474
- "types": "./lib/index.d.cts",
475
- "default": "./lib/index.cjs"
476
- }
477
- },
478
- "./objGetOrDefaultValue": {
479
- "import": {
480
- "types": "./lib/index.d.ts",
481
- "default": "./lib/index.js"
482
- },
483
- "require": {
484
- "types": "./lib/index.d.cts",
485
- "default": "./lib/index.cjs"
486
- }
487
- },
488
- "./objHas": {
489
- "import": {
490
- "types": "./lib/index.d.ts",
491
- "default": "./lib/index.js"
492
- },
493
- "require": {
494
- "types": "./lib/index.d.cts",
495
- "default": "./lib/index.cjs"
496
- }
497
- },
498
- "./objOmitKeysMutable": {
499
- "import": {
500
- "types": "./lib/index.d.ts",
501
- "default": "./lib/index.js"
502
- },
503
- "require": {
504
- "types": "./lib/index.d.cts",
505
- "default": "./lib/index.cjs"
506
- }
507
- },
508
- "./objPropertyValueToGetter": {
509
- "import": {
510
- "types": "./lib/index.d.ts",
511
- "default": "./lib/index.js"
512
- },
513
- "require": {
514
- "types": "./lib/index.d.cts",
515
- "default": "./lib/index.cjs"
516
- }
517
- },
518
- "./objSet": {
519
- "import": {
520
- "types": "./lib/index.d.ts",
521
- "default": "./lib/index.js"
522
- },
523
- "require": {
524
- "types": "./lib/index.d.cts",
525
- "default": "./lib/index.cjs"
526
- }
527
- },
528
- "./objSize": {
529
- "import": {
530
- "types": "./lib/index.d.ts",
531
- "default": "./lib/index.js"
532
- },
533
- "require": {
534
- "types": "./lib/index.d.cts",
535
- "default": "./lib/index.cjs"
536
- }
537
- },
538
- "./objSortKeys": {
539
- "import": {
540
- "types": "./lib/index.d.ts",
541
- "default": "./lib/index.js"
542
- },
543
- "require": {
544
- "types": "./lib/index.d.cts",
545
- "default": "./lib/index.cjs"
546
- }
547
- },
548
- "./objToMap": {
549
- "import": {
550
- "types": "./lib/index.d.ts",
551
- "default": "./lib/index.js"
552
- },
553
- "require": {
554
- "types": "./lib/index.d.cts",
555
- "default": "./lib/index.cjs"
556
- }
557
- },
558
- "./objUpdate": {
559
- "import": {
560
- "types": "./lib/index.d.ts",
561
- "default": "./lib/index.js"
562
- },
563
- "require": {
564
- "types": "./lib/index.d.cts",
565
- "default": "./lib/index.cjs"
566
- }
567
- },
568
- "./objUpdatePropertyDescriptors": {
569
- "import": {
570
- "types": "./lib/index.d.ts",
571
- "default": "./lib/index.js"
572
- },
573
- "require": {
574
- "types": "./lib/index.d.cts",
575
- "default": "./lib/index.cjs"
576
- }
577
- },
578
- "./propertyIsEnumerable": {
579
- "import": {
580
- "types": "./lib/index.d.ts",
581
- "default": "./lib/index.js"
582
- },
583
- "require": {
584
- "types": "./lib/index.d.cts",
585
- "default": "./lib/index.cjs"
586
- }
587
- },
588
- "./setEnumerable": {
589
- "import": {
590
- "types": "./lib/index.d.ts",
591
- "default": "./lib/index.js"
592
- },
593
- "require": {
594
- "types": "./lib/index.d.cts",
595
- "default": "./lib/index.cjs"
596
- }
597
- },
598
- "./setNonConfigurable": {
599
- "import": {
600
- "types": "./lib/index.d.ts",
601
- "default": "./lib/index.js"
602
- },
603
- "require": {
604
- "types": "./lib/index.d.cts",
605
- "default": "./lib/index.cjs"
606
- }
607
- },
608
- "./setNonEnumerable": {
609
- "import": {
610
- "types": "./lib/index.d.ts",
611
- "default": "./lib/index.js"
612
- },
613
- "require": {
614
- "types": "./lib/index.d.cts",
615
- "default": "./lib/index.cjs"
616
- }
617
- },
618
- "./setNonWritable": {
619
- "import": {
620
- "types": "./lib/index.d.ts",
621
- "default": "./lib/index.js"
622
- },
623
- "require": {
624
- "types": "./lib/index.d.cts",
625
- "default": "./lib/index.cjs"
626
- }
627
- },
628
- "./setWritable": {
629
- "import": {
630
- "types": "./lib/index.d.ts",
631
- "default": "./lib/index.js"
632
- },
633
- "require": {
634
- "types": "./lib/index.d.cts",
635
- "default": "./lib/index.cjs"
636
- }
637
- },
638
- "./sortKeys": {
639
- "import": {
640
- "types": "./lib/index.d.ts",
641
- "default": "./lib/index.js"
642
- },
643
- "require": {
644
- "types": "./lib/index.d.cts",
645
- "default": "./lib/index.cjs"
646
- }
647
- },
648
- "./sortKeysLike": {
649
- "import": {
650
- "types": "./lib/index.d.ts",
651
- "default": "./lib/index.js"
652
- },
653
- "require": {
654
- "types": "./lib/index.d.cts",
655
- "default": "./lib/index.cjs"
656
- }
657
- },
658
- "./staticClassKeysOf": {
659
- "import": {
660
- "types": "./lib/index.d.ts",
661
- "default": "./lib/index.js"
662
- },
663
- "require": {
664
- "types": "./lib/index.d.cts",
665
- "default": "./lib/index.cjs"
666
- }
667
- },
668
- "./valuesOf": {
42
+ "./*": {
669
43
  "import": {
670
44
  "types": "./lib/index.d.ts",
671
45
  "default": "./lib/index.js"
@@ -676,19 +50,15 @@
676
50
  }
677
51
  }
678
52
  },
679
- "dependencies": {},
680
- "publishConfig": {
681
- "access": "public"
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/bemoje/mono.git",
56
+ "directory": "libs/object"
682
57
  },
683
- "license": "MIT",
684
58
  "author": {
685
59
  "name": "Benjamin Møller Jensen",
686
60
  "email": "bemoje@bemoje.net",
687
61
  "url": "https://github.com/bemoje/"
688
62
  },
689
- "repository": {
690
- "type": "git",
691
- "url": "git+https://github.com/bemoje/mono.git",
692
- "directory": "libs/object"
693
- }
63
+ "license": "MIT"
694
64
  }