qcobjects-sdk 2.4.64 → 2.4.66

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.
@@ -17,7 +17,8 @@ jobs:
17
17
  - uses: actions/checkout@v3.3.0
18
18
  - uses: actions/setup-node@v3.6.0
19
19
  with:
20
- node-version: 16
20
+ node-version: 20
21
+ - run: npm config set legacy-peer-deps true=true
21
22
  - run: npm ci
22
23
  - run: npm test
23
24
 
@@ -28,11 +29,12 @@ jobs:
28
29
  - uses: actions/checkout@v3.3.0
29
30
  - uses: actions/setup-node@v3.6.0
30
31
  with:
31
- node-version: 16
32
+ node-version: 20
32
33
  registry-url: https://registry.npmjs.org/
33
34
  - name: Set up NPM authentication
34
35
  run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
35
- - run: npm ci
36
+ - run: npm config set legacy-peer-deps true=true
37
+ - run: npm ci
36
38
  - run: npm publish
37
39
  env:
38
40
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/.gitmodules ADDED
@@ -0,0 +1,4 @@
1
+ [submodule "v2.4"]
2
+ path = v2.4
3
+ url = https://github.com/QuickCorp/QCObjects-SDK.git
4
+ branch = v2.4
package/README.md CHANGED
@@ -16,6 +16,7 @@ If you like this code please [DONATE ](https://www.paypal.com/cgi-bin/webscr?cmd
16
16
 
17
17
  [QCObjects SDK](https://sdk.qcobjects.dev) is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using [QCObjects](https://qcobjects.dev).
18
18
 
19
+ Checkout the [QCObjects SDK 2.4 beta version](https://sdk.qcobjects.dev/v2.4/)
19
20
 
20
21
  If you like more code samples feel free to write your questions to info@quickcorp.cl
21
22
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.64
1
+ 2.4.66
package/docs/CNAME ADDED
@@ -0,0 +1 @@
1
+ sdk.qcobjects.dev
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-sdk",
3
- "version": "2.4.64",
3
+ "version": "2.4.66",
4
4
  "description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
5
5
  "main": "public/index.cjs",
6
6
  "module": "public/index.mjs",
@@ -99,7 +99,10 @@
99
99
  "eslint-plugin-promise": "^6.1.1",
100
100
  "hint": "^2.0.0",
101
101
  "jasmine": "^3.7.0",
102
+ "qcobjects": "^2.4.99",
103
+ "qcobjects-cli": "^2.4.65",
102
104
  "qcobjects-command-publish-static": "^1.0.2",
105
+ "qcobjects-sdk": "^2.4.64",
103
106
  "qcobjects-tsconfig": "^2.4.10",
104
107
  "typescript": "^5.0.4"
105
108
  },
@@ -108,8 +111,8 @@
108
111
  "url": "https://github.com/QuickCorp/QCObjects-SDK/issues"
109
112
  },
110
113
  "homepage": "https://sdk.qcobjects.dev",
111
- "dependencies": {},
112
114
  "peerDependencies": {
113
- "qcobjects": ">=2.4.84"
114
- }
115
+ "qcobjects": ">=2.4.99"
116
+ },
117
+ "dependencies": {}
115
118
  }
@@ -76,7 +76,7 @@ const _top = (typeof module === "object" && typeof module.exports === "object")
76
76
  return (typeof Buffer !== "undefined") ? (Buffer.from(s, "ascii").toString("base64")) : (btoa(s));
77
77
  }
78
78
 
79
- getGlobalUser(...args:any[]) {
79
+ static getGlobalUser(...args:any[]) {
80
80
  const username = [args].join("|");
81
81
  const __index__ = "userToken_" + SessionUserToken.generateIndex(username);
82
82
  if (typeof (global as any).get(__index__) === "undefined" || (global as any).get(__index__) === null) {
@@ -88,24 +88,24 @@ const _top = (typeof module === "object" && typeof module.exports === "object")
88
88
  return (global as any).get(__index__).user;
89
89
  }
90
90
 
91
- getGlobalUserToken(...args:any[]) {
92
- return this.getGlobalUser(args).token;
91
+ static getGlobalUserToken(...args:any[]) {
92
+ return SessionUserToken.getGlobalUser(args).token;
93
93
  }
94
94
 
95
- getGlobalUserId(...args:any[]) {
96
- return this.getGlobalUser(args).id;
95
+ static getGlobalUserId(...args:any[]) {
96
+ return SessionUserToken.getGlobalUser(args).id;
97
97
  }
98
98
 
99
- getGlobalUserPriority(...args:any[]) {
100
- return this.getGlobalUser(args).priority;
99
+ static getGlobalUserPriority(...args:any[]) {
100
+ return SessionUserToken.getGlobalUser(args).priority;
101
101
  }
102
102
 
103
- getLoginCredentialsToken(username:string, password:string) {
104
- return _Crypt.encrypt(`${username}${password}`, this.getGlobalUserToken(username));
103
+ static getLoginCredentialsToken(username:string, password:string) {
104
+ return _Crypt.encrypt(`${username}${password}`, SessionUserToken.getGlobalUserToken(username));
105
105
  }
106
106
 
107
- closeGlobalSession(...args:any[]) {
108
- this.getGlobalUser(args);
107
+ static closeGlobalSession(...args:any[]) {
108
+ SessionUserToken.getGlobalUser(args);
109
109
  const username = [args].join("|");
110
110
  const __index__ = "userToken_" + SessionUserToken.generateIndex(username);
111
111
  if (typeof (global as any).get(__index__) !== "undefined") {