reslib 2.2.0 → 2.3.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 CHANGED
@@ -1,253 +1,251 @@
1
- {
2
- "name": "reslib",
3
- "version": "2.2.0",
4
- "description": "A lightweight, production-ready TypeScript library for decorator-based resource management and application utilities. ResLib provides a modular framework for building scalable applications with features like authentication, internationalization, validation, session management, and observable patterns. Designed for flexibility, it works seamlessly across web, Node.js, React Native (including Expo), and server-side frameworks like NestJS, offering type safety, extensibility, and performance optimizations without platform-specific dependencies.",
5
- "exports": {
6
- "./auth": {
7
- "types": "./build/auth/index.d.ts",
8
- "import": "./lib/esm/auth.mjs",
9
- "require": "./lib/cjs/auth.js"
10
- },
11
- "./countries": {
12
- "types": "./build/countries/index.d.ts",
13
- "import": "./lib/esm/countries.mjs",
14
- "require": "./lib/cjs/countries.js"
15
- },
16
- "./currency": {
17
- "types": "./build/currency/index.d.ts",
18
- "import": "./lib/esm/currency.mjs",
19
- "require": "./lib/cjs/currency.js"
20
- },
21
- "./i18n": {
22
- "types": "./build/i18n/index.d.ts",
23
- "import": "./lib/esm/i18n.mjs",
24
- "require": "./lib/cjs/i18n.js"
25
- },
26
- "./exception": {
27
- "types": "./build/exception/index.d.ts",
28
- "import": "./lib/esm/exception.mjs",
29
- "require": "./lib/cjs/exception.js"
30
- },
31
- "./inputFormatter": {
32
- "types": "./build/inputFormatter/index.d.ts",
33
- "import": "./lib/esm/inputFormatter.mjs",
34
- "require": "./lib/cjs/inputFormatter.js"
35
- },
36
- "./logger": {
37
- "types": "./build/logger/index.d.ts",
38
- "import": "./lib/esm/logger.mjs",
39
- "require": "./lib/cjs/logger.js"
40
- },
41
- "./observable": {
42
- "types": "./build/observable/index.d.ts",
43
- "import": "./lib/esm/observable.mjs",
44
- "require": "./lib/cjs/observable.js"
45
- },
46
- "./platform": {
47
- "types": "./build/platform/index.d.ts",
48
- "import": "./lib/esm/platform.mjs",
49
- "require": "./lib/cjs/platform.js"
50
- },
51
- "./resources": {
52
- "types": "./build/resources/index.d.ts",
53
- "import": "./lib/esm/resources.mjs",
54
- "require": "./lib/cjs/resources.js"
55
- },
56
- "./session": {
57
- "types": "./build/session/index.d.ts",
58
- "import": "./lib/esm/session.mjs",
59
- "require": "./lib/cjs/session.js"
60
- },
61
- "./utils": {
62
- "types": "./build/utils/index.d.ts",
63
- "import": "./lib/esm/utils.mjs",
64
- "require": "./lib/cjs/utils.js"
65
- },
66
- "./types": {
67
- "types": "./build/types/index.d.ts",
68
- "import": "./lib/esm/types.mjs",
69
- "require": "./lib/cjs/types.js"
70
- },
71
- "./validator": {
72
- "types": "./build/validator/index.d.ts",
73
- "import": "./lib/esm/validator.mjs",
74
- "require": "./lib/cjs/validator.js"
75
- },
76
- "./build/*": {
77
- "types": "./build/*",
78
- "import": "./build/*",
79
- "require": "./build/*"
80
- }
81
- },
82
- "typesVersions": {
83
- "*": {
84
- "auth": [
85
- "./build/auth/index.d.ts"
86
- ],
87
- "countries": [
88
- "./build/countries/index.d.ts"
89
- ],
90
- "currency": [
91
- "./build/currency/index.d.ts"
92
- ],
93
- "i18n": [
94
- "./build/i18n/index.d.ts"
95
- ],
96
- "inputFormatter": [
97
- "./build/inputFormatter/index.d.ts"
98
- ],
99
- "logger": [
100
- "./build/logger/index.d.ts"
101
- ],
102
- "observable": [
103
- "./build/observable/index.d.ts"
104
- ],
105
- "platform": [
106
- "./build/platform/index.d.ts"
107
- ],
108
- "resources": [
109
- "./build/resources/index.d.ts"
110
- ],
111
- "session": [
112
- "./build/session/index.d.ts"
113
- ],
114
- "utils": [
115
- "./build/utils/index.d.ts"
116
- ],
117
- "types": [
118
- "./build/types/index.d.ts"
119
- ],
120
- "validator": [
121
- "./build/validator/index.d.ts"
122
- ]
123
- }
124
- },
125
- "files": [
126
- "build",
127
- "lib",
128
- "docs",
129
- "readme.md",
130
- "package.json"
131
- ],
132
- "scripts": {
133
- "clear-npx-cache": "npx clear-npx-cache",
134
- "pretest": "npm run build-test",
135
- "prebuild": "npm run clean && npm run lint",
136
- "build": "tsup --config tsup.config.build.ts",
137
- "build-dts": "tsc -p tsconfig.dts.json && npx tsc-alias -p tsconfig.dts.json",
138
- "build-test": "tsup --config tsup.config.test.ts",
139
- "clean": "npx rimraf build dist",
140
- "dev": "tsup --config tsup.config.build.ts --watch",
141
- "test": "npx jest",
142
- "test:watch": "npx jest --watch",
143
- "test:coverage": "npx jest --coverage",
144
- "start": "node build/test/index",
145
- "prepublishOnly": "npm run build",
146
- "build-doc": "npx typedoc",
147
- "check": "npm pack --dry-run",
148
- "publish:canary": "npm publish --tag canary",
149
- "publish:beta": "npm publish --tag beta",
150
- "publish:latest": "npm publish",
151
- "release:patch": "npm version patch && npm publish",
152
- "release:minor": "npm version minor && npm publish",
153
- "release:major": "npm version major && npm publish",
154
- "changeset": "changeset",
155
- "changeset:add": "changeset add",
156
- "changeset:version": "changeset version",
157
- "changeset:publish": "changeset publish",
158
- "check:updates": "npx npm-check-updates",
159
- "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
160
- "audit:fix": "npm audit fix",
161
- "lint": "eslint src --ext .ts,.tsx",
162
- "lint:fix": "eslint src --ext .ts,.tsx --fix",
163
- "format": "prettier --write src/**/*.{ts,tsx}",
164
- "format:check": "prettier --check src/**/*.{ts,tsx}",
165
- "prepare": "husky install"
166
- },
167
- "devDependencies": {
168
- "@changesets/cli": "^2.29.8",
169
- "@types/crypto-js": "^4.2.2",
170
- "@types/google-libphonenumber": "^7.4.30",
171
- "@types/jest": "^30.0.0",
172
- "@types/node": "^24.10.2",
173
- "@types/qs": "^6.14.0",
174
- "@typescript-eslint/eslint-plugin": "^8.49.0",
175
- "@typescript-eslint/parser": "^8.49.0",
176
- "concurrently": "^9.2.1",
177
- "conventional-changelog-cli": "^4.1.0",
178
- "eslint": "^9.39.1",
179
- "eslint-plugin-jest": "^29.2.1",
180
- "fast-glob": "^3.3.3",
181
- "husky": "^9.1.7",
182
- "jest": "^30.2.0",
183
- "lint-staged": "^16.2.7",
184
- "prettier": "^3.7.4",
185
- "rimraf": "^6.1.2",
186
- "ts-jest": "^29.4.6",
187
- "ts-patch": "^3.3.0",
188
- "tsc-alias": "^1.8.16",
189
- "tsup": "^8.5.1",
190
- "typedoc": "^0.28.15"
191
- },
192
- "dependencies": {
193
- "crypto-js": "^4.2.0",
194
- "moment": "^2.30.1",
195
- "qs": "^6.14.0",
196
- "reflect-metadata": "^0.2.2",
197
- "stable-hash": "^0.0.6"
198
- },
199
- "peerDependencies": {
200
- "google-libphonenumber": "*",
201
- "reflect-metadata": "^0.2.2"
202
- },
203
- "peerDependenciesMeta": {},
204
- "publishConfig": {
205
- "access": "public"
206
- },
207
- "keywords": [
208
- "TypeScript",
209
- "Decorators",
210
- "Modular",
211
- "Architecture",
212
- "Extensible",
213
- "Library",
214
- "Custom",
215
- "FieldMeta",
216
- "Types",
217
- "Type",
218
- "Safety",
219
- "API",
220
- "Development",
221
- "Code",
222
- "Organization",
223
- "Application",
224
- "Scalability",
225
- "Dynamic",
226
- "Ecosystem",
227
- "Clean",
228
- "Code",
229
- "Object-Oriented",
230
- "Programming",
231
- "Developer-Friendly",
232
- "Open",
233
- "Source",
234
- "Resource Management",
235
- "i18n",
236
- "Validation",
237
- "Authentication",
238
- "Session Management",
239
- "Observable",
240
- "Cross-Platform"
241
- ],
242
- "author": "Boris Fouomene",
243
- "license": "MIT",
244
- "repository": {
245
- "type": "git",
246
- "url": "https://github.com/boris-fouomene/reslib.git"
247
- },
248
- "bugs": {
249
- "url": "https://github.com/boris-fouomene/reslib/issues"
250
- },
251
- "homepage": "https://github.com/boris-fouomene/reslib#readme",
252
- "npmClient": "npm"
253
- }
1
+ {
2
+ "name": "reslib",
3
+ "version": "2.3.0",
4
+ "description": "A lightweight, production-ready TypeScript library for decorator-based resource management and application utilities. ResLib provides a modular framework for building scalable applications with features like authentication, internationalization, validation, session management, and observable patterns. Designed for flexibility, it works seamlessly across web, Node.js, React Native (including Expo), and server-side frameworks like NestJS, offering type safety, extensibility, and performance optimizations without platform-specific dependencies.",
5
+ "exports": {
6
+ "./auth": {
7
+ "types": "./build/auth/index.d.ts",
8
+ "import": "./lib/esm/auth.mjs",
9
+ "require": "./lib/cjs/auth.js"
10
+ },
11
+ "./countries": {
12
+ "types": "./build/countries/index.d.ts",
13
+ "import": "./lib/esm/countries.mjs",
14
+ "require": "./lib/cjs/countries.js"
15
+ },
16
+ "./currency": {
17
+ "types": "./build/currency/index.d.ts",
18
+ "import": "./lib/esm/currency.mjs",
19
+ "require": "./lib/cjs/currency.js"
20
+ },
21
+ "./i18n": {
22
+ "types": "./build/i18n/index.d.ts",
23
+ "import": "./lib/esm/i18n.mjs",
24
+ "require": "./lib/cjs/i18n.js"
25
+ },
26
+ "./exception": {
27
+ "types": "./build/exception/index.d.ts",
28
+ "import": "./lib/esm/exception.mjs",
29
+ "require": "./lib/cjs/exception.js"
30
+ },
31
+ "./inputFormatter": {
32
+ "types": "./build/inputFormatter/index.d.ts",
33
+ "import": "./lib/esm/inputFormatter.mjs",
34
+ "require": "./lib/cjs/inputFormatter.js"
35
+ },
36
+ "./logger": {
37
+ "types": "./build/logger/index.d.ts",
38
+ "import": "./lib/esm/logger.mjs",
39
+ "require": "./lib/cjs/logger.js"
40
+ },
41
+ "./observable": {
42
+ "types": "./build/observable/index.d.ts",
43
+ "import": "./lib/esm/observable.mjs",
44
+ "require": "./lib/cjs/observable.js"
45
+ },
46
+ "./platform": {
47
+ "types": "./build/platform/index.d.ts",
48
+ "import": "./lib/esm/platform.mjs",
49
+ "require": "./lib/cjs/platform.js"
50
+ },
51
+ "./resources": {
52
+ "types": "./build/resources/index.d.ts",
53
+ "import": "./lib/esm/resources.mjs",
54
+ "require": "./lib/cjs/resources.js"
55
+ },
56
+ "./session": {
57
+ "types": "./build/session/index.d.ts",
58
+ "import": "./lib/esm/session.mjs",
59
+ "require": "./lib/cjs/session.js"
60
+ },
61
+ "./utils": {
62
+ "types": "./build/utils/index.d.ts",
63
+ "import": "./lib/esm/utils.mjs",
64
+ "require": "./lib/cjs/utils.js"
65
+ },
66
+ "./types": {
67
+ "types": "./build/types/index.d.ts",
68
+ "import": "./lib/esm/types.mjs",
69
+ "require": "./lib/cjs/types.js"
70
+ },
71
+ "./validator": {
72
+ "types": "./build/validator/index.d.ts",
73
+ "import": "./lib/esm/validator.mjs",
74
+ "require": "./lib/cjs/validator.js"
75
+ },
76
+ "./build/*": {
77
+ "types": "./build/*",
78
+ "import": "./build/*",
79
+ "require": "./build/*"
80
+ }
81
+ },
82
+ "typesVersions": {
83
+ "*": {
84
+ "auth": [
85
+ "./build/auth/index.d.ts"
86
+ ],
87
+ "countries": [
88
+ "./build/countries/index.d.ts"
89
+ ],
90
+ "currency": [
91
+ "./build/currency/index.d.ts"
92
+ ],
93
+ "i18n": [
94
+ "./build/i18n/index.d.ts"
95
+ ],
96
+ "inputFormatter": [
97
+ "./build/inputFormatter/index.d.ts"
98
+ ],
99
+ "logger": [
100
+ "./build/logger/index.d.ts"
101
+ ],
102
+ "observable": [
103
+ "./build/observable/index.d.ts"
104
+ ],
105
+ "platform": [
106
+ "./build/platform/index.d.ts"
107
+ ],
108
+ "resources": [
109
+ "./build/resources/index.d.ts"
110
+ ],
111
+ "session": [
112
+ "./build/session/index.d.ts"
113
+ ],
114
+ "utils": [
115
+ "./build/utils/index.d.ts"
116
+ ],
117
+ "types": [
118
+ "./build/types/index.d.ts"
119
+ ],
120
+ "validator": [
121
+ "./build/validator/index.d.ts"
122
+ ]
123
+ }
124
+ },
125
+ "files": [
126
+ "build",
127
+ "lib",
128
+ "docs",
129
+ "readme.md",
130
+ "package.json"
131
+ ],
132
+ "scripts": {
133
+ "clear-npx-cache": "npx clear-npx-cache",
134
+ "pretest": "npm run build-test",
135
+ "prebuild": "npm run clean && npm run lint",
136
+ "build": "tsup --config tsup.config.build.ts",
137
+ "build-dts": "tsc -p tsconfig.dts.json && npx tsc-alias -p tsconfig.dts.json",
138
+ "build-test": "tsup --config tsup.config.test.ts",
139
+ "clean": "npx rimraf build dist",
140
+ "dev": "tsup --config tsup.config.build.ts --watch",
141
+ "test": "npx jest",
142
+ "test:watch": "npx jest --watch",
143
+ "test:coverage": "npx jest --coverage",
144
+ "start": "node build/test/index",
145
+ "prepublishOnly": "npm run build",
146
+ "build-doc": "npx typedoc",
147
+ "check": "npm pack --dry-run",
148
+ "publish:canary": "npm publish --tag canary",
149
+ "publish:beta": "npm publish --tag beta",
150
+ "publish:latest": "npm publish",
151
+ "release:patch": "npm version patch && npm publish",
152
+ "release:minor": "npm version minor && npm publish",
153
+ "release:major": "npm version major && npm publish",
154
+ "changeset": "changeset",
155
+ "changeset:add": "changeset add",
156
+ "changeset:version": "changeset version",
157
+ "changeset:publish": "changeset publish",
158
+ "check:updates": "npx npm-check-updates",
159
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
160
+ "audit:fix": "npm audit fix",
161
+ "lint": "eslint src --ext .ts,.tsx",
162
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
163
+ "format": "prettier --write src/**/*.{ts,tsx}",
164
+ "format:check": "prettier --check src/**/*.{ts,tsx}",
165
+ "prepare": "husky install"
166
+ },
167
+ "devDependencies": {
168
+ "@changesets/cli": "^2.29.8",
169
+ "@types/google-libphonenumber": "^7.4.30",
170
+ "@types/jest": "^30.0.0",
171
+ "@types/node": "^24.10.2",
172
+ "@types/qs": "^6.14.0",
173
+ "@typescript-eslint/eslint-plugin": "^8.49.0",
174
+ "@typescript-eslint/parser": "^8.49.0",
175
+ "concurrently": "^9.2.1",
176
+ "conventional-changelog-cli": "^4.1.0",
177
+ "eslint": "^9.39.1",
178
+ "eslint-plugin-jest": "^29.2.1",
179
+ "fast-glob": "^3.3.3",
180
+ "husky": "^9.1.7",
181
+ "jest": "^30.2.0",
182
+ "lint-staged": "^16.2.7",
183
+ "prettier": "^3.7.4",
184
+ "rimraf": "^6.1.2",
185
+ "ts-jest": "^29.4.6",
186
+ "ts-patch": "^3.3.0",
187
+ "tsc-alias": "^1.8.16",
188
+ "tsup": "^8.5.1",
189
+ "typedoc": "^0.28.15"
190
+ },
191
+ "dependencies": {
192
+ "moment": "^2.30.1",
193
+ "qs": "^6.14.0",
194
+ "reflect-metadata": "^0.2.2",
195
+ "stable-hash": "^0.0.6"
196
+ },
197
+ "peerDependencies": {
198
+ "google-libphonenumber": "*",
199
+ "reflect-metadata": "^0.2.2"
200
+ },
201
+ "peerDependenciesMeta": {},
202
+ "publishConfig": {
203
+ "access": "public"
204
+ },
205
+ "keywords": [
206
+ "TypeScript",
207
+ "Decorators",
208
+ "Modular",
209
+ "Architecture",
210
+ "Extensible",
211
+ "Library",
212
+ "Custom",
213
+ "FieldMeta",
214
+ "Types",
215
+ "Type",
216
+ "Safety",
217
+ "API",
218
+ "Development",
219
+ "Code",
220
+ "Organization",
221
+ "Application",
222
+ "Scalability",
223
+ "Dynamic",
224
+ "Ecosystem",
225
+ "Clean",
226
+ "Code",
227
+ "Object-Oriented",
228
+ "Programming",
229
+ "Developer-Friendly",
230
+ "Open",
231
+ "Source",
232
+ "Resource Management",
233
+ "i18n",
234
+ "Validation",
235
+ "Authentication",
236
+ "Session Management",
237
+ "Observable",
238
+ "Cross-Platform"
239
+ ],
240
+ "author": "Boris Fouomene",
241
+ "license": "MIT",
242
+ "repository": {
243
+ "type": "git",
244
+ "url": "https://github.com/boris-fouomene/reslib.git"
245
+ },
246
+ "bugs": {
247
+ "url": "https://github.com/boris-fouomene/reslib/issues"
248
+ },
249
+ "homepage": "https://github.com/boris-fouomene/reslib#readme",
250
+ "npmClient": "npm"
251
+ }