@phygitallabs/tapquest-core 4.2.0 → 4.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/bun.lock +1055 -0
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/modules/auth/utils/user.ts +1 -1
- package/tsup.config.ts +10 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phygitallabs/tapquest-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -8,17 +8,18 @@
|
|
|
8
8
|
"main": "./dist/index.mjs",
|
|
9
9
|
"module": "./dist/index.mjs",
|
|
10
10
|
"types": "./dist/index.d.mts",
|
|
11
|
+
"sideEffects": false,
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
14
|
+
"types": "./dist/index.d.mts",
|
|
15
|
+
"import": "./dist/index.mjs"
|
|
15
16
|
},
|
|
16
17
|
"./package.json": "./package.json"
|
|
17
18
|
},
|
|
18
19
|
"scripts": {
|
|
19
|
-
"prepublishOnly": "bun run build",
|
|
20
20
|
"build": "tsup",
|
|
21
|
-
"dev": "tsup --watch"
|
|
21
|
+
"dev": "tsup --watch",
|
|
22
|
+
"prepublishOnly": "bun run build"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"@phygitallabs/achievement": "latest",
|
|
@@ -37,7 +38,6 @@
|
|
|
37
38
|
"react": ">=18.2",
|
|
38
39
|
"react-redux": "^8.0.7",
|
|
39
40
|
"redux-persist": "^6.0.0",
|
|
40
|
-
"typescript": "latest",
|
|
41
41
|
"uuid": "^13.0.0",
|
|
42
42
|
"zustand": "^5.0.8"
|
|
43
43
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserData, UserRole, UserType } from "../types/user-data";
|
|
2
2
|
import { UserModel } from "@phygitallabs/api-core";
|
|
3
|
-
import jwtDecode from "jwt-decode";
|
|
3
|
+
import { jwtDecode } from "jwt-decode";
|
|
4
4
|
|
|
5
5
|
export const transformProtoUserData = (user: UserModel, accessToken: string): UserData => {
|
|
6
6
|
const userData = { ...user } as UserData;
|
package/tsup.config.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import type { Options } from "tsup";
|
|
1
2
|
import { defineConfig } from "tsup";
|
|
2
3
|
|
|
3
|
-
export default defineConfig({
|
|
4
|
+
export default defineConfig((options: Options) => ({
|
|
4
5
|
entry: ["index.ts"],
|
|
6
|
+
banner: {
|
|
7
|
+
js: "'use client'",
|
|
8
|
+
},
|
|
5
9
|
format: ["esm"],
|
|
6
10
|
outExtension: () => ({ js: '.mjs' }),
|
|
7
11
|
dts: true,
|
|
8
|
-
|
|
12
|
+
clean: true,
|
|
9
13
|
sourcemap: true,
|
|
10
14
|
minify: true,
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
treeshake: true,
|
|
16
|
+
splitting: true,
|
|
17
|
+
...options,
|
|
18
|
+
}));
|