@redhat-cloud-services/frontend-components-config 4.5.4 → 4.5.8

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.
@@ -0,0 +1,3 @@
1
+ const ExtensionsPlugin = require('@redhat-cloud-services/frontend-components-config-utilities/extensions-plugin');
2
+
3
+ module.exports = ExtensionsPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config",
3
- "version": "4.5.4",
3
+ "version": "4.5.8",
4
4
  "description": "Config plugins and settings for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#readme",
22
22
  "dependencies": {
23
- "@redhat-cloud-services/frontend-components-config-utilities": "^1.5.6",
23
+ "@redhat-cloud-services/frontend-components-config-utilities": "^1.5.8",
24
24
  "assert": "^2.0.0",
25
25
  "babel-loader": "^8.2.2",
26
26
  "browserify-zlib": "^0.2.0",
package/src/config.js CHANGED
@@ -35,7 +35,7 @@ module.exports = ({
35
35
  client = {},
36
36
  bundlePfModules = false
37
37
  } = {}) => {
38
- const filenameMask = `js/[name]${useFileHash ? '.[chunkhash]' : ''}.js`;
38
+ const filenameMask = `js/[name]${useFileHash ? `.${Date.now()}.[fullhash]` : ''}.js`;
39
39
  if (betaEnv) {
40
40
  env = `${betaEnv}-beta`;
41
41
  console.warn('betaEnv is deprecated in favor of env');
@@ -36,10 +36,10 @@ describe('should create dummy config with no options', () => {
36
36
 
37
37
  test('output', () => {
38
38
  expect(output).toEqual({
39
- filename: 'js/[name].[chunkhash].js',
39
+ filename: expect.stringMatching(/js\/\[name\]\.\d+\.\[fullhash\]\.js/),
40
40
  path: '/dist',
41
41
  publicPath: undefined,
42
- chunkFilename: 'js/[name].[chunkhash].js'
42
+ chunkFilename: expect.stringMatching(/js\/\[name\]\.\d+\.\[fullhash\]\.js/)
43
43
  });
44
44
  });
45
45