@ibiliaze/global-vars 1.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/dist/index.d.ts +14 -0
- package/dist/index.js +13 -0
- package/package.json +18 -0
- package/src/index.ts +26 -0
- package/tsconfig.json +10 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
TradeOps_a: {},
|
|
5
|
+
TicketOps_a: {
|
|
6
|
+
cart: { timer: 10 * 60 * 1000 },
|
|
7
|
+
user: { auth: true },
|
|
8
|
+
},
|
|
9
|
+
TicketOps_b: {
|
|
10
|
+
cart: { timer: 10 * 60 * 1000 },
|
|
11
|
+
user: { auth: false },
|
|
12
|
+
},
|
|
13
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ibiliaze/global-vars",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"pub": "npm publish --access public",
|
|
10
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v1.0.0 -m 'v1.0.0'; git push origin v1.0.0; git push",
|
|
11
|
+
"push": "npm run build; npm run git; npm run pub"
|
|
12
|
+
},
|
|
13
|
+
"author": "Ibi Hasanli",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"typescript": "^5.0.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default <GlobalVars>{
|
|
2
|
+
TradeOps_a: {},
|
|
3
|
+
TicketOps_a: {
|
|
4
|
+
cart: { timer: 10 * 60 * 1000 },
|
|
5
|
+
user: { auth: true },
|
|
6
|
+
},
|
|
7
|
+
TicketOps_b: {
|
|
8
|
+
cart: { timer: 10 * 60 * 1000 },
|
|
9
|
+
user: { auth: false },
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export interface Cart {
|
|
14
|
+
timer: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface User {
|
|
18
|
+
auth: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GlobalVars {
|
|
22
|
+
[app: string]: {
|
|
23
|
+
cart?: Cart;
|
|
24
|
+
user?: User;
|
|
25
|
+
};
|
|
26
|
+
}
|