Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
const webpack = require('webpack'); // To access built-in plugins
|
Merged PR 174902: [JS SDK simplify functions]: Final updated features of JS SDK
## This PR adds the following features in JS SDK:
1. Method to move visual - (Report, Page, Visual)
2. Method to resize visual - (Report, Page, Visual)
3. Method to show/ hide visual - (Report, Page, Visual)
4. Method to resize Page - (Report, Page)
5. Method to get active page - (Report)
6. Method to get slicers - (Page)
7. Method to add/ remove context menu - (Report)
8. Method to add/ remove options menu - (Report)
9. Filter builder classes
# Checklist
- [X] Build and test scripts are passing, if available
- [X] Open errors/warning details are shared with the reviewer
- [X] There are no violations to the applicable coding guidelines
- [X] Application has a consistent exception management setup
- [X] Code does not contain commented code
- [X] Is testing performed and results captured in ADO and list of test cases executed shared in PR?
- [X] Generic exception type is not handled
- [X] Stacktrace of error is not returned
- [X] All external packages/libraries are installed from an online package manager
Related work items: #556945, #556982, #557990, #558047, #558568, #558774, #559269, #559270, #559675, #560267, #560343, #562588, #562621, #562622, #562623, #562689, #562693, #562694, #563307, #563335, #564462, #564992, #565015, #566324, #566493, #566939, #567286, #570360, #570361, #570466, #570469, #571363, #571440, #572234, #572247, #573012, #573015, #573664, #574414, #574522, #574523, #575744
2021-06-08 13:33:21 +03:00
|
|
|
const glob = require("glob");
|
Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
|
2016-05-28 02:02:57 +03:00
|
|
|
module.exports = {
|
Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
mode: 'development',
|
2021-11-18 10:41:44 +03:00
|
|
|
entry: glob.sync('./test/**/*.spec.ts'),
|
2016-05-28 02:02:57 +03:00
|
|
|
output: {
|
|
|
|
path: __dirname + "/tmp",
|
2016-06-16 03:46:38 +03:00
|
|
|
filename: 'test.spec.js'
|
2016-05-28 02:02:57 +03:00
|
|
|
},
|
|
|
|
devtool: 'source-map',
|
|
|
|
resolve: {
|
Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
extensions: ['.webpack.js', '.web.js', '.ts', '.js']
|
2016-05-28 02:02:57 +03:00
|
|
|
},
|
|
|
|
module: {
|
Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
rules: [
|
2016-06-16 00:24:18 +03:00
|
|
|
{ test: /\.map$/, loader: 'ignore-loader' },
|
|
|
|
{ test: /\.d.ts$/, loader: 'ignore-loader' },
|
|
|
|
{ test: /\.ts$/, exclude: /\.d.ts$/, loader: 'ts-loader' },
|
2016-06-15 21:01:09 +03:00
|
|
|
{ test: /\.json$/, loader: 'json-loader' }
|
2016-05-28 02:02:57 +03:00
|
|
|
]
|
|
|
|
},
|
Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types
## Changes in this PR
1. Resolved all npm audit vulnerabilities (except 1 low severity vulnerability in _gulp-gh-pages_, no fix available for that)
1. Upgraded to TS 3.9
1. Migrated from typings to @types
1. Used async/await to align with the return types of methods
1. Minor docs fixes
1. Fixed types of all methods
Related work items: #323592, #323972, #326488, #327505, #330227, #331107, #331778, #331837, #459272, #459826, #460523, #461075, #462110, #462652, #463184, #463185, #463806, #463807, #464436, #468356, #468867
2020-12-04 08:37:17 +03:00
|
|
|
plugins: [
|
|
|
|
new webpack.LoaderOptionsPlugin({
|
|
|
|
ts: {
|
|
|
|
configFileName: "webpack.test.tsconfig.json"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
2016-05-28 02:02:57 +03:00
|
|
|
}
|