@nsshunt/stsoauth2plugin 0.1.7 → 0.1.10
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/assets/stsoauth2worker.56b3b966.js +7 -0
- package/dist/stsoauth2plugin.es.js +7500 -0
- package/dist/stsoauth2plugin.umd.js +6 -0
- package/package.json +12 -6
- package/types/Utils/CryptoUtils.d.ts +7 -0
- package/types/Utils/CryptoUtils.d.ts.map +1 -0
- package/types/Utils/QueryParams.d.ts +8 -0
- package/types/Utils/QueryParams.d.ts.map +1 -0
- package/types/index.d.ts +6 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.test.d.ts +1 -0
- package/types/index.test.d.ts.map +1 -0
- package/types/stsStorage.d.ts +22 -0
- package/types/stsStorage.d.ts.map +1 -0
- package/types/stsoauth2manager.d.ts +11 -0
- package/types/stsoauth2manager.d.ts.map +1 -0
- package/types/stsoauth2types.d.ts +89 -0
- package/types/stsoauth2types.d.ts.map +1 -0
- package/types/stsoauth2worker.d.ts +2 -0
- package/types/stsoauth2worker.d.ts.map +1 -0
- package/.eslintrc.json +0 -27
- package/.github/dependabot.yml +0 -13
- package/.github/workflows/npm-publish.yml +0 -54
- package/babel.config.json +0 -6
- package/build.sh +0 -29
- package/tsconfig.json +0 -32
- package/vite.config.ts +0 -92
package/.eslintrc.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true,
|
|
5
|
-
"node": true,
|
|
6
|
-
"jest": true
|
|
7
|
-
},
|
|
8
|
-
"extends": [
|
|
9
|
-
"eslint:recommended",
|
|
10
|
-
"plugin:@typescript-eslint/recommended"
|
|
11
|
-
],
|
|
12
|
-
"parser": "@typescript-eslint/parser",
|
|
13
|
-
"parserOptions": {
|
|
14
|
-
"ecmaVersion": "latest",
|
|
15
|
-
"sourceType": "module"
|
|
16
|
-
},
|
|
17
|
-
"plugins": [
|
|
18
|
-
"@typescript-eslint"
|
|
19
|
-
],
|
|
20
|
-
"ignorePatterns": ["temp.js", "**/k6scripts/*.js", "**/public/*", "**/dist/*", "**/types/*"],
|
|
21
|
-
"rules": {
|
|
22
|
-
"indent": ["error", "tab"],
|
|
23
|
-
//"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
|
24
|
-
"no-mixed-spaces-and-tabs": 0, // disable rule
|
|
25
|
-
"@typescript-eslint/no-var-requires": "warn"
|
|
26
|
-
}
|
|
27
|
-
}
|
package/.github/dependabot.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
#
|
|
6
|
-
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
|
|
7
|
-
|
|
8
|
-
version: 2
|
|
9
|
-
updates:
|
|
10
|
-
- package-ecosystem: "npm" # See documentation for possible values
|
|
11
|
-
directory: "/" # Location of package manifests
|
|
12
|
-
schedule:
|
|
13
|
-
interval: "monthly"
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
push:
|
|
10
|
-
branches: [ main ]
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v2
|
|
17
|
-
- uses: actions/setup-node@v2
|
|
18
|
-
with:
|
|
19
|
-
node-version: 18
|
|
20
|
-
- run: npm ci
|
|
21
|
-
- run: npm run lint
|
|
22
|
-
- run: npm test
|
|
23
|
-
|
|
24
|
-
publish-npm:
|
|
25
|
-
needs: build
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
steps:
|
|
28
|
-
- uses: actions/checkout@v2
|
|
29
|
-
- uses: actions/setup-node@v2
|
|
30
|
-
with:
|
|
31
|
-
node-version: 18
|
|
32
|
-
registry-url: https://registry.npmjs.org/
|
|
33
|
-
- run: npm ci
|
|
34
|
-
- run: npm run build
|
|
35
|
-
- run: npm publish --access public
|
|
36
|
-
env:
|
|
37
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
38
|
-
|
|
39
|
-
# publish-gpr:
|
|
40
|
-
# needs: build
|
|
41
|
-
# runs-on: ubuntu-latest
|
|
42
|
-
# permissions:
|
|
43
|
-
# contents: read
|
|
44
|
-
# packages: write
|
|
45
|
-
# steps:
|
|
46
|
-
# - uses: actions/checkout@v2
|
|
47
|
-
# - uses: actions/setup-node@v2
|
|
48
|
-
# with:
|
|
49
|
-
# node-version: 17
|
|
50
|
-
# registry-url: https://npm.pkg.github.com/
|
|
51
|
-
# - run: npm ci
|
|
52
|
-
# - run: npm publish
|
|
53
|
-
# env:
|
|
54
|
-
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
package/babel.config.json
DELETED
package/build.sh
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
rm -rf dist
|
|
3
|
-
rm -rf types
|
|
4
|
-
npm run build
|
|
5
|
-
RESULT=$?
|
|
6
|
-
if [ $RESULT -eq 0 ]; then
|
|
7
|
-
echo success build
|
|
8
|
-
npm run lint
|
|
9
|
-
RESULT=$?
|
|
10
|
-
if [ $RESULT -eq 0 ]; then
|
|
11
|
-
echo success lint
|
|
12
|
-
npm run test
|
|
13
|
-
RESULT=$?
|
|
14
|
-
if [ $RESULT -eq 0 ]; then
|
|
15
|
-
echo success test
|
|
16
|
-
git commit -a -m "changed"
|
|
17
|
-
npm version patch
|
|
18
|
-
npm i
|
|
19
|
-
git commit -a -m "changed"
|
|
20
|
-
git push
|
|
21
|
-
else
|
|
22
|
-
echo failed test
|
|
23
|
-
fi
|
|
24
|
-
else
|
|
25
|
-
echo failed lint
|
|
26
|
-
fi
|
|
27
|
-
else
|
|
28
|
-
echo failed build
|
|
29
|
-
fi
|
package/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsconfig/node18/tsconfig.json",
|
|
3
|
-
"include": ["src/**/*" ],
|
|
4
|
-
"exclude": ["node_modules", "**/node_modules/**/*", "**/*.spec.ts"],
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"module": "esnext",
|
|
7
|
-
"target": "es2021",
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"outDir": "dist",
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"declarationDir": "./types",
|
|
14
|
-
"declarationMap": true,
|
|
15
|
-
|
|
16
|
-
"noImplicitAny": false,
|
|
17
|
-
"strictNullChecks": false,
|
|
18
|
-
|
|
19
|
-
"lib": [
|
|
20
|
-
// Should target at least ES2016 in Vue 3
|
|
21
|
-
// Support for newer versions of language built-ins are
|
|
22
|
-
// left for the users to include, because that would require:
|
|
23
|
-
// - either the project doesn't need to support older versions of browsers;
|
|
24
|
-
// - or the project has properly included the necessary polyfills.
|
|
25
|
-
"ES2016",
|
|
26
|
-
"DOM",
|
|
27
|
-
"DOM.Iterable",
|
|
28
|
-
"webworker"
|
|
29
|
-
// No `ScriptHost` because Vue 3 dropped support for IE
|
|
30
|
-
],
|
|
31
|
-
}
|
|
32
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
//import { fileURLToPath, URL } from 'url'
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
//import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import path from 'path'
|
|
6
|
-
//import fs from 'fs';
|
|
7
|
-
|
|
8
|
-
// https://vitejs.dev/config/
|
|
9
|
-
export default ({ mode }) => {
|
|
10
|
-
//export default defineConfig({
|
|
11
|
-
//process.env = {...process.env, ...loadEnv(mode, process.cwd())};
|
|
12
|
-
// https://github.com/vitejs/vite/issues/1930
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
let envpath = `./.env.${mode}`;
|
|
16
|
-
require('dotenv').config({ path: envpath });
|
|
17
|
-
|
|
18
|
-
console.log(process.env);
|
|
19
|
-
console.log(mode);
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
return defineConfig({
|
|
23
|
-
|
|
24
|
-
build: {
|
|
25
|
-
lib: {
|
|
26
|
-
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
27
|
-
name: 'stsoauth2plugin',
|
|
28
|
-
fileName: (format) => `stsoauth2plugin.${format}.js`
|
|
29
|
-
},
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
// make sure to externalize deps that shouldn't be bundled
|
|
32
|
-
// into your library
|
|
33
|
-
external: [
|
|
34
|
-
'vue',
|
|
35
|
-
'vue-router'
|
|
36
|
-
],
|
|
37
|
-
output: {
|
|
38
|
-
// Provide global variables to use in the UMD build
|
|
39
|
-
// for externalized deps
|
|
40
|
-
globals: {
|
|
41
|
-
vue: 'Vue'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/*
|
|
48
|
-
plugins: [vue()],
|
|
49
|
-
define: {
|
|
50
|
-
'process.argv': [ process.cwd() ], //@@ only required because of colors - delete ...
|
|
51
|
-
'process.env': { ...process.env },
|
|
52
|
-
// Define process properties used by various imports
|
|
53
|
-
'process.pid': 0,
|
|
54
|
-
'process.stdout': null,
|
|
55
|
-
'process.stderr': null,
|
|
56
|
-
'process.platform': null
|
|
57
|
-
},
|
|
58
|
-
resolve: {
|
|
59
|
-
alias: {
|
|
60
|
-
//'@': path.resolve(__dirname, 'src'),
|
|
61
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
base: '/',
|
|
66
|
-
|
|
67
|
-
// serve --ssl-cert "/etc/letsencrypt/live/stsmda.org/fullchain.pem" --ssl-key "/etc/letsencrypt/live/stsmda.org/privkey.pem" -p 3010 dist
|
|
68
|
-
|
|
69
|
-
server: {
|
|
70
|
-
host: 'stsauth01.stsmda.org'
|
|
71
|
-
,https: {
|
|
72
|
-
key: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/privkey.pem'),
|
|
73
|
-
cert: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/fullchain.pem'),
|
|
74
|
-
passphrase: ''
|
|
75
|
-
}
|
|
76
|
-
,port: 3010 // was working using 3007
|
|
77
|
-
,hmr: {
|
|
78
|
-
protocol: 'wss',
|
|
79
|
-
//host: '192.168.14.1',
|
|
80
|
-
host: 'stsauth01.stsmda.org',
|
|
81
|
-
port: 3010
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
worker: {
|
|
86
|
-
format: 'es'
|
|
87
|
-
}
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|