@emarketeer/ts-microservice-commons 2.1.0 → 2.6.0

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.
@@ -41,19 +41,22 @@
41
41
  'oracledb',
42
42
  'pg-query-stream'
43
43
  ], additionalExternals, true),
44
- mode: 'development',
44
+ mode: 'production',
45
45
  target: 'node',
46
46
  resolveLoader: {
47
47
  modules: ['node_modules/@emarketeer/ts-microservice-commons/node_modules', 'node_modules']
48
48
  },
49
49
  resolve: {
50
- extensions: ['.js', '.json', '.ts', '.tsx', '.mjs']
50
+ extensions: ['.js', '.json', '.ts', '.tsx', '.mjs', '.node']
51
51
  },
52
52
  output: {
53
53
  libraryTarget: 'commonjs',
54
54
  path: path.join(__dirname, '.webpack'),
55
55
  filename: '[name].js'
56
56
  },
57
+ node: {
58
+ __dirname: false
59
+ },
57
60
  plugins: [new webpack.IgnorePlugin(/^pg-native$/)],
58
61
  module: {
59
62
  rules: [
@@ -86,6 +89,10 @@
86
89
  type: 'javascript/auto',
87
90
  test: /\.mjs$/,
88
91
  use: []
92
+ },
93
+ {
94
+ test: /\.node$/,
95
+ loader: 'native-addon-loader'
89
96
  }
90
97
  ]
91
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emarketeer/ts-microservice-commons",
3
- "version": "2.1.0",
3
+ "version": "2.6.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "bin": {
@@ -105,19 +105,20 @@
105
105
  "eslint-config-airbnb-base": "14.0.0",
106
106
  "eslint-plugin-import": "^2.18.2",
107
107
  "eslint-plugin-jest": "^22.19.0",
108
+ "eslint-plugin-sonarjs": "^0.7.0",
108
109
  "jest": "^26.6.1",
109
110
  "jest-circus": "^26.6.3",
110
111
  "jest-extended": "^0.11.5",
111
112
  "js-yaml": "^3.13.1",
112
113
  "lodash-es": "^4.17.15",
114
+ "native-addon-loader": "^2.0.1",
113
115
  "serverless": "^2.57.0",
114
- "serverless-webpack": "^5.5.4",
115
116
  "serverless-plugin-lambda-insights": "^1.0.8",
116
- "eslint-plugin-sonarjs": "^0.7.0",
117
+ "serverless-webpack": "^5.5.4",
117
118
  "ts-jest": "^26.4.3",
118
119
  "ts-loader": "8.3.0",
119
120
  "typescript": "^4.4.2",
120
- "webpack": "^4.41.1",
121
+ "webpack": "4.46.0",
121
122
  "yaml": "^1.7.2"
122
123
  },
123
124
  "devDependencies": {