@indodev/toolkit 0.3.4 → 0.4.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 +46 -170
- package/dist/datetime/index.cjs +442 -0
- package/dist/datetime/index.cjs.map +1 -0
- package/dist/datetime/index.d.cts +412 -0
- package/dist/datetime/index.d.ts +412 -0
- package/dist/datetime/index.js +422 -0
- package/dist/datetime/index.js.map +1 -0
- package/dist/index.cjs +438 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +420 -1
- package/dist/index.js.map +1 -1
- package/package.json +36 -19
- package/LICENCE +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indodev/toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Indonesian developer utilities for validation, formatting, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -97,6 +97,16 @@
|
|
|
97
97
|
"types": "./dist/email-validator/index.d.cts",
|
|
98
98
|
"default": "./dist/email-validator/index.cjs"
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
"./datetime": {
|
|
102
|
+
"import": {
|
|
103
|
+
"types": "./dist/datetime/index.d.ts",
|
|
104
|
+
"default": "./dist/datetime/index.js"
|
|
105
|
+
},
|
|
106
|
+
"require": {
|
|
107
|
+
"types": "./dist/datetime/index.d.cts",
|
|
108
|
+
"default": "./dist/datetime/index.cjs"
|
|
109
|
+
}
|
|
100
110
|
}
|
|
101
111
|
},
|
|
102
112
|
"files": [
|
|
@@ -108,6 +118,22 @@
|
|
|
108
118
|
"access": "public",
|
|
109
119
|
"registry": "https://registry.npmjs.org/"
|
|
110
120
|
},
|
|
121
|
+
"scripts": {
|
|
122
|
+
"dev": "tsup --watch",
|
|
123
|
+
"build": "tsup",
|
|
124
|
+
"test": "vitest",
|
|
125
|
+
"test:ui": "vitest --ui",
|
|
126
|
+
"test:coverage": "vitest --coverage",
|
|
127
|
+
"test:run": "vitest run",
|
|
128
|
+
"typecheck": "tsc --noEmit",
|
|
129
|
+
"lint": "eslint src --ext .ts",
|
|
130
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
131
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
132
|
+
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
133
|
+
"prepublish:only": "pnpm run build && pnpm run test:run && publint",
|
|
134
|
+
"changeset": "changeset",
|
|
135
|
+
"release": "changeset publish"
|
|
136
|
+
},
|
|
111
137
|
"keywords": [
|
|
112
138
|
"indonesia",
|
|
113
139
|
"indonesian",
|
|
@@ -127,7 +153,14 @@
|
|
|
127
153
|
"utilities",
|
|
128
154
|
"formatting",
|
|
129
155
|
"e-commerce",
|
|
130
|
-
"indonesia-utilities"
|
|
156
|
+
"indonesia-utilities",
|
|
157
|
+
"datetime",
|
|
158
|
+
"date",
|
|
159
|
+
"time",
|
|
160
|
+
"timezone",
|
|
161
|
+
"WIB",
|
|
162
|
+
"WITA",
|
|
163
|
+
"WIT"
|
|
131
164
|
],
|
|
132
165
|
"author": "Choirul Adam <choiruladamm@gmail.com>",
|
|
133
166
|
"license": "MIT",
|
|
@@ -162,21 +195,5 @@
|
|
|
162
195
|
"typescript-eslint": "^8.49.0",
|
|
163
196
|
"vitest": "^2.1.8",
|
|
164
197
|
"zod": "^3.24.1"
|
|
165
|
-
},
|
|
166
|
-
"scripts": {
|
|
167
|
-
"dev": "tsup --watch",
|
|
168
|
-
"build": "tsup",
|
|
169
|
-
"test": "vitest",
|
|
170
|
-
"test:ui": "vitest --ui",
|
|
171
|
-
"test:coverage": "vitest --coverage",
|
|
172
|
-
"test:run": "vitest run",
|
|
173
|
-
"typecheck": "tsc --noEmit",
|
|
174
|
-
"lint": "eslint src --ext .ts",
|
|
175
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
176
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
177
|
-
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
178
|
-
"prepublish:only": "pnpm run build && pnpm run test:run && publint",
|
|
179
|
-
"changeset": "changeset",
|
|
180
|
-
"release": "changeset publish"
|
|
181
198
|
}
|
|
182
|
-
}
|
|
199
|
+
}
|
package/LICENCE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Adamm
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|