@vltpkg/dot-prop 0.0.0-0.1730239248325 → 0.0.0-2

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 +23 -1
  2. package/package.json +19 -13
package/README.md CHANGED
@@ -1 +1,23 @@
1
- # `@vltpkg/dot-prop`
1
+ ![dot-prop](https://github.com/user-attachments/assets/2f26fc9d-5f78-49cc-bb4b-6549e2233111)
2
+
3
+ # @vltpkg/dot-prop
4
+
5
+ A library that allows you to easily access, set, delete, and check deeply nested properties in objects and arrays using string-based paths.
6
+
7
+ ## Usage
8
+
9
+ ```js
10
+ const obj = { foo: { bar: [1, 2, 3] } }
11
+
12
+ // Get a value
13
+ get(obj, 'foo.bar[0]') // 1
14
+
15
+ // Set a value
16
+ set(obj, 'foo.bar[1]', 42) // obj.foo.bar[1] is now 42
17
+
18
+ // Delete a value
19
+ del(obj, 'foo.bar[2]') // Removes obj.foo.bar[2]
20
+
21
+ // Check if a path exists
22
+ has(obj, 'foo.bar[0]') // true
23
+ ```
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@vltpkg/dot-prop",
3
3
  "description": "Get and manipulate an object using strings",
4
- "version": "0.0.0-0.1730239248325",
4
+ "version": "0.0.0-2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vltpkg/vltpkg.git",
8
+ "directory": "src/dot-prop"
9
+ },
5
10
  "tshy": {
6
11
  "selfLink": false,
12
+ "liveDev": true,
7
13
  "dialects": [
8
14
  "esm"
9
15
  ],
@@ -12,21 +18,21 @@
12
18
  ".": "./src/index.ts"
13
19
  }
14
20
  },
15
- "dependencies": {},
16
21
  "devDependencies": {
17
- "@eslint/js": "^9.8.0",
22
+ "@eslint/js": "^9.20.0",
18
23
  "@types/eslint__js": "^8.42.3",
19
- "@types/node": "^22.4.1",
20
- "eslint": "^9.8.0",
21
- "prettier": "^3.3.2",
22
- "tap": "^21.0.1",
24
+ "@types/node": "^22.13.1",
25
+ "eslint": "^9.20.0",
26
+ "prettier": "^3.4.2",
27
+ "tap": "^21.1.0",
23
28
  "tshy": "^3.0.2",
24
- "typescript": "^5.5.4",
25
- "typescript-eslint": "^8.0.1"
29
+ "typedoc": "0.27.6",
30
+ "typescript": "5.7.3",
31
+ "typescript-eslint": "^8.23.0"
26
32
  },
27
33
  "license": "MIT",
28
34
  "engines": {
29
- "node": "20 || >=22"
35
+ "node": ">=22"
30
36
  },
31
37
  "tap": {
32
38
  "extends": "../../tap-config.yaml"
@@ -51,9 +57,9 @@
51
57
  "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
52
58
  "lint": "eslint . --fix",
53
59
  "lint:check": "eslint .",
54
- "presnap": "tshy",
55
60
  "snap": "tap",
56
- "pretest": "tshy",
57
- "test": "tap"
61
+ "test": "tap",
62
+ "posttest": "tsc --noEmit",
63
+ "typecheck": "tsc --noEmit"
58
64
  }
59
65
  }