@tolki/enum 1.0.0 → 1.1.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/README.md +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/php-enums.d.ts +8 -0
- package/dist/php-enums.d.ts.map +1 -0
- package/dist/php-enums.js +10 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/abetwothree/tolki/refs/heads/master/docs/vitepress/public/tolki-logo-short.svg" width="50%" alt="Laravel Tolki JS Logo"></p>
|
|
2
|
+
|
|
1
3
|
# Tolki JS Enum Package
|
|
2
4
|
|
|
3
5
|
This package provides enum utility functions similar to a PHP enum class.
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { cases as
|
|
1
|
+
import { cases as e, defineEnum as m, from as t, tryFrom as f } from "./enums.js";
|
|
2
|
+
import { SortDirection as n } from "./php-enums.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
n as SortDirection,
|
|
5
|
+
e as cases,
|
|
6
|
+
m as defineEnum,
|
|
7
|
+
t as from,
|
|
8
|
+
f as tryFrom
|
|
7
9
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefineEnumResult } from 'packages/types/src';
|
|
2
|
+
export declare const SortDirection: DefineEnumResult<{
|
|
3
|
+
readonly Ascending: "Ascending";
|
|
4
|
+
readonly Descending: "Descending";
|
|
5
|
+
readonly backed: false;
|
|
6
|
+
readonly _cases: readonly ["Ascending", "Descending"];
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=php-enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"php-enums.d.ts","sourceRoot":"","sources":["../src/php-enums.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;;;;EAKf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolki/enum",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A set of enum utilities for the
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A set of enum utilities for the Laravel TypeScript Publish PHP package.",
|
|
5
5
|
"author": "Abraham Arango <https://github.com/abetwothree>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://tolki.abe.dev/enums/",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"schemaVersion": 1,
|
|
19
19
|
"vite": {
|
|
20
20
|
"type": "compatible",
|
|
21
|
-
"versions": "^7.0.0"
|
|
21
|
+
"versions": "^8.0.0||^7.0.0"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"main": "dist/index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"tolki"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@tolki/types": "^1.
|
|
40
|
+
"@tolki/types": "^1.2.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"vite": "^7.0.0"
|
|
43
|
+
"vite": "^8.0.0||^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"files": [
|