@sassoftware/viya-serverjs 0.1.0 → 0.1.2
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 +3 -8
- package/lib/cli.js +9 -0
- package/lib/core/config.js +98 -0
- package/lib/core/handlers/appCallback.js +51 -0
- package/lib/core/handlers/codeAuth.js +61 -0
- package/lib/core/handlers/decodeJwt.js +18 -0
- package/lib/core/handlers/favicon.js +45 -0
- package/lib/core/handlers/getApp.js +67 -0
- package/lib/core/handlers/getApp2.js +48 -0
- package/lib/core/handlers/getUser.js +49 -0
- package/lib/core/handlers/index.js +101 -0
- package/lib/core/handlers/keepAlive.js +96 -0
- package/lib/core/handlers/keepAlive2.js +33 -0
- package/lib/core/handlers/logon.js +44 -0
- package/lib/core/handlers/logout.js +88 -0
- package/lib/core/handlers/proxyMapUri.js +64 -0
- package/lib/core/handlers/proxyOnResponse.js +26 -0
- package/lib/core/handlers/reactDev.js +52 -0
- package/lib/core/handlers/setCookies.js +116 -0
- package/lib/core/iService.js +467 -0
- package/lib/core/index.js +195 -0
- package/lib/core/parseDocker.js +33 -0
- package/lib/core/plugins/SASauth.js +100 -0
- package/lib/core/plugins/appCookie.js +98 -0
- package/lib/core/plugins/setContext.js +55 -0
- package/lib/core/plugins/setDefaultRoutes.js +239 -0
- package/lib/core/plugins/setupAuth.js +86 -0
- package/lib/core/plugins/setupUserRoutes.js +54 -0
- package/lib/core/plugins/token.js +31 -0
- package/lib/core/schemes/SASTokenScheme.js +71 -0
- package/lib/index.js +29 -0
- package/package.json +8 -79
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sassoftware/viya-serverjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "App server for Custom Viya Applications",
|
|
5
5
|
"author": "Deva Kumaraswamy <deva.kumar@sas.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
-
"main": "./lib/
|
|
7
|
+
"main": "./lib/cli.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"lib"
|
|
10
10
|
],
|
|
@@ -26,83 +26,12 @@
|
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://github.com/sassoftware/viya-servers/issues"
|
|
28
28
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "npm run build -ws --if-present",
|
|
34
|
-
"lint": "npx eslint --fix src/*.js",
|
|
35
|
-
"start:appjs": "cd packages/examples/apptest && npm run start",
|
|
36
|
-
"start:proxy": "cd packages/examples/proxytest && npm run start",
|
|
37
|
-
"debug:appjs": "cd packages/examples/apptest && npm run debug",
|
|
38
|
-
"puball": "npm run pub --ws --if-present",
|
|
39
|
-
"format": "prettier-eslint --eslint-config-path ./.eslintrc.json --write '**/*.js'"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@hapi/bell": "^13.0.1",
|
|
43
|
-
"@hapi/boom": "^9.1.4",
|
|
44
|
-
"@hapi/cookie": "^11.0.2",
|
|
45
|
-
"@hapi/h2o2": "^9.1.0",
|
|
46
|
-
"@hapi/hapi": "^21.3.2",
|
|
47
|
-
"@hapi/inert": "^7.1.0",
|
|
48
|
-
"@hapi/vision": "^6.1.0",
|
|
49
|
-
"axios": "^0.26.1",
|
|
50
|
-
"core-js": "^3.22.2",
|
|
51
|
-
"cross-spawn": "^7.0.3",
|
|
52
|
-
"debug": "^4.3.4",
|
|
53
|
-
"docker-file-parser": "^1.0.7",
|
|
54
|
-
"eslint-config-prettier": "^8.5.0",
|
|
55
|
-
"handlebars": "^4.7.7",
|
|
56
|
-
"hapi-require-https": "^5.0.0",
|
|
57
|
-
"joi": "^17.6.0",
|
|
58
|
-
"jwt-decode": "^3.1.2",
|
|
59
|
-
"node-cache-promise": "^1.0.2",
|
|
60
|
-
"only": "0.0.2",
|
|
61
|
-
"qs": "^6.10.3",
|
|
62
|
-
"regenerator-runtime": "^0.13.9",
|
|
63
|
-
"request-debug": "^0.2.0",
|
|
64
|
-
"selfsigned": "^2.0.1",
|
|
65
|
-
"uuid": "^8.3.2",
|
|
66
|
-
"yargs": "17.4.1"
|
|
29
|
+
"bin": {
|
|
30
|
+
"@sassoftware/viya-serverjs": "./lib/cli.js"
|
|
67
31
|
},
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
73
|
-
"@babel/plugin-proposal-decorators": "^7.17.9",
|
|
74
|
-
"@babel/plugin-proposal-do-expressions": "^7.16.7",
|
|
75
|
-
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
|
76
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
|
77
|
-
"@babel/plugin-proposal-function-bind": "^7.16.7",
|
|
78
|
-
"@babel/plugin-proposal-function-sent": "^7.16.7",
|
|
79
|
-
"@babel/plugin-proposal-json-strings": "^7.16.7",
|
|
80
|
-
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
|
|
81
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
82
|
-
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
|
83
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
|
|
84
|
-
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
85
|
-
"@babel/plugin-proposal-pipeline-operator": "^7.17.6",
|
|
86
|
-
"@babel/plugin-proposal-throw-expressions": "^7.16.7",
|
|
87
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
88
|
-
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
89
|
-
"@babel/plugin-transform-regenerator": "^7.17.9",
|
|
90
|
-
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
91
|
-
"@babel/plugin-transform-spread": "^7.16.7",
|
|
92
|
-
"@babel/plugin-transform-strict-mode": "^7.16.7",
|
|
93
|
-
"@babel/preset-env": "^7.16.11",
|
|
94
|
-
"cross-env": "^7.0.3",
|
|
95
|
-
"eslint": "^8.14.0",
|
|
96
|
-
"prettier": "^2.6.2",
|
|
97
|
-
"rimraf": "^3.0.2",
|
|
98
|
-
"shx": "^0.3.4"
|
|
99
|
-
},
|
|
100
|
-
"resolutions": {
|
|
101
|
-
"core-js": "3.21.1",
|
|
102
|
-
"node-forge": ">=1.0.0",
|
|
103
|
-
"underscore": "1.13.1",
|
|
104
|
-
"trim-newlines": "3.0.1",
|
|
105
|
-
"glob-parent": ">=5.1.2",
|
|
106
|
-
"@braintree/sanitize-url": ">=6.0.0"
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "rimraf -rf lib && babel src --out-dir lib",
|
|
34
|
+
"pub": "npm publish --tag dev --access public",
|
|
35
|
+
"lint": "npx eslint --fix src/*.js"
|
|
107
36
|
}
|
|
108
37
|
}
|