@sasjs/adapter 3.9.3 → 3.10.1
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/.git-hooks/pre-commit +12 -0
- package/SASjsApiClient.d.ts +0 -7
- package/auth/AuthManager.d.ts +0 -9
- package/index.js +2 -2
- package/node/SASjsApiClient.d.ts +0 -7
- package/node/auth/AuthManager.d.ts +0 -9
- package/node/index.js +2 -2
- package/node/index.js.LICENSE.txt +1 -0
- package/node/types/errors/InvalidCsrfError.d.ts +3 -0
- package/package.json +12 -5
- package/src/SASjs.ts +0 -9
- package/src/SASjsApiClient.ts +0 -15
- package/src/auth/AuthManager.ts +30 -53
- package/src/job-execution/WebJobExecutor.ts +12 -8
- package/src/request/RequestClient.ts +28 -1
- package/src/types/errors/InvalidCsrfError.ts +9 -0
- package/src/utils/convertToCsv.ts +1 -1
- package/types/errors/InvalidCsrfError.d.ts +3 -0
- package/.gitpod.yml +0 -2
- package/.prettierrc +0 -6
- package/auth/getAuthCodeForSasjs.d.ts +0 -9
- package/jest.config.js +0 -184
- package/node/auth/getAuthCodeForSasjs.d.ts +0 -9
- package/src/auth/getAuthCodeForSasjs.ts +0 -31
- package/tsconfig.json +0 -14
- package/tslint.json +0 -9
- package/typedoc.json +0 -13
- package/webpack.config.js +0 -79
package/webpack.config.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const webpack = require('webpack')
|
|
3
|
-
const terserPlugin = require('terser-webpack-plugin')
|
|
4
|
-
const nodePolyfillPlugin = require('node-polyfill-webpack-plugin')
|
|
5
|
-
|
|
6
|
-
const defaultPlugins = [
|
|
7
|
-
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
|
|
8
|
-
new webpack.SourceMapDevToolPlugin({
|
|
9
|
-
filename: null,
|
|
10
|
-
exclude: [/node_modules/],
|
|
11
|
-
test: /\.ts($|\?)/i
|
|
12
|
-
})
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
const optimization = {
|
|
16
|
-
minimize: true,
|
|
17
|
-
minimizer: [
|
|
18
|
-
new terserPlugin({
|
|
19
|
-
parallel: true,
|
|
20
|
-
terserOptions: {}
|
|
21
|
-
})
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const browserConfig = {
|
|
26
|
-
entry: './src/index.ts',
|
|
27
|
-
devtool: 'inline-source-map',
|
|
28
|
-
mode: 'production',
|
|
29
|
-
optimization: optimization,
|
|
30
|
-
module: {
|
|
31
|
-
rules: [
|
|
32
|
-
{
|
|
33
|
-
test: /\.ts?$/,
|
|
34
|
-
use: 'ts-loader',
|
|
35
|
-
exclude: /node_modules/
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
resolve: {
|
|
40
|
-
extensions: ['.ts', '.js'],
|
|
41
|
-
fallback: { https: false, fs: false, readline: false }
|
|
42
|
-
},
|
|
43
|
-
output: {
|
|
44
|
-
filename: 'index.js',
|
|
45
|
-
path: path.resolve(__dirname, 'build'),
|
|
46
|
-
libraryTarget: 'umd',
|
|
47
|
-
library: 'SASjs'
|
|
48
|
-
},
|
|
49
|
-
plugins: [
|
|
50
|
-
...defaultPlugins,
|
|
51
|
-
new webpack.ProvidePlugin({
|
|
52
|
-
process: 'process/browser'
|
|
53
|
-
}),
|
|
54
|
-
new nodePolyfillPlugin()
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const browserConfigWithoutProcessPlugin = {
|
|
59
|
-
entry: browserConfig.entry,
|
|
60
|
-
devtool: browserConfig.devtool,
|
|
61
|
-
mode: browserConfig.mode,
|
|
62
|
-
optimization: optimization,
|
|
63
|
-
module: browserConfig.module,
|
|
64
|
-
resolve: browserConfig.resolve,
|
|
65
|
-
output: browserConfig.output,
|
|
66
|
-
plugins: defaultPlugins
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const nodeConfig = {
|
|
70
|
-
...browserConfigWithoutProcessPlugin,
|
|
71
|
-
target: 'node',
|
|
72
|
-
entry: './node/index.ts',
|
|
73
|
-
output: {
|
|
74
|
-
...browserConfig.output,
|
|
75
|
-
path: path.resolve(__dirname, 'build', 'node')
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
module.exports = [browserConfig, nodeConfig]
|