get-or-throw 2.3.1 → 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.
- package/package.json +3 -13
- package/tsdown.config.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-or-throw",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A convenience function for safely getting values from dynamic objects and arrays",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indexed",
|
|
@@ -19,19 +19,9 @@
|
|
|
19
19
|
"url": "git+https://github.com/0x80/get-or-throw.git"
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
|
22
|
-
"main": "./dist/index.cjs",
|
|
23
|
-
"types": "./dist/index.d.cts",
|
|
24
22
|
"exports": {
|
|
25
|
-
".":
|
|
26
|
-
|
|
27
|
-
"types": "./dist/index.d.mts",
|
|
28
|
-
"default": "./dist/index.mjs"
|
|
29
|
-
},
|
|
30
|
-
"require": {
|
|
31
|
-
"types": "./dist/index.d.cts",
|
|
32
|
-
"default": "./dist/index.cjs"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
23
|
+
".": "./dist/index.mjs",
|
|
24
|
+
"./package.json": "./package.json"
|
|
35
25
|
},
|
|
36
26
|
"publishConfig": {
|
|
37
27
|
"access": "public"
|
package/tsdown.config.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { defineConfig } from "tsdown";
|
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
entry: { index: "src/index.ts" },
|
|
5
|
-
format: ["esm"
|
|
6
|
-
target: "
|
|
5
|
+
format: ["esm"],
|
|
6
|
+
target: "node22",
|
|
7
7
|
sourcemap: true,
|
|
8
8
|
dts: true,
|
|
9
9
|
clean: true,
|
|
10
|
+
exports: true,
|
|
10
11
|
});
|