@adobe/aio-cli-lib-app-config 4.0.3 → 4.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aio-cli-lib-app-config",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "node lib to provide a consistent interface to various config files that make up Adobe Developer App Builder applications and extensions",
5
5
  "repository": "https://github.com/adobe/aio-cli-lib-app-config/",
6
6
  "license": "Apache-2.0",
package/src/index.js CHANGED
@@ -21,16 +21,10 @@ const ajvAddFormats = require('ajv-formats')
21
21
  // eslint-disable-next-line node/no-unpublished-require
22
22
  const schema = require('../schema/app.config.yaml.schema.json')
23
23
 
24
- // give or take daylight savings, and leap seconds ...
25
- const AboutAWeekInSeconds = '604800'
26
24
  const defaults = {
27
25
  defaultAppHostname: 'adobeio-static.net',
28
26
  defaultTvmUrl: 'https://firefly-tvm.adobe.io',
29
27
  defaultOwApihost: 'https://adobeioruntime.net',
30
- defaultHTMLCacheDuration: '60',
31
- defaultJSCacheDuration: AboutAWeekInSeconds,
32
- defaultCSSCacheDuration: AboutAWeekInSeconds,
33
- defaultImageCacheDuration: AboutAWeekInSeconds,
34
28
  stageAppHostname: 'dev.runtime.adobe.io',
35
29
  USER_CONFIG_FILE: 'app.config.yaml',
36
30
  LEGACY_RUNTIME_MANIFEST: 'manifest.yml',
@@ -688,10 +682,10 @@ async function buildSingleConfig (configName, singleUserConfig, commonConfig, in
688
682
 
689
683
  config.app.defaultHostname = getCliEnv() === STAGE_ENV ? defaults.stageAppHostname : defaults.defaultAppHostname
690
684
  config.app.hostname = singleUserConfig.hostname || config.app.defaultHostname
691
- config.app.htmlCacheDuration = singleUserConfig.htmlcacheduration || defaults.defaultHTMLCacheDuration
692
- config.app.jsCacheDuration = singleUserConfig.jscacheduration || defaults.defaultJSCacheDuration
693
- config.app.cssCacheDuration = singleUserConfig.csscacheduration || defaults.defaultCSSCacheDuration
694
- config.app.imageCacheDuration = singleUserConfig.imagecacheduration || defaults.defaultImageCacheDuration
685
+ config.app.htmlCacheDuration = singleUserConfig.htmlcacheduration
686
+ config.app.jsCacheDuration = singleUserConfig.jscacheduration
687
+ config.app.cssCacheDuration = singleUserConfig.csscacheduration
688
+ config.app.imageCacheDuration = singleUserConfig.imagecacheduration
695
689
  config.hooks = singleUserConfig.hooks || {}
696
690
 
697
691
  config.imsOrgId = commonConfig.imsOrgId