@powerlines/plugin-date 0.12.60 → 0.12.62

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/README.md CHANGED
@@ -256,7 +256,11 @@ specification. Contributions of any kind welcome!
256
256
  <br />
257
257
 
258
258
  <div align="center">
259
- <img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
259
+ <picture>
260
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
261
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
262
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
263
+ </picture>
260
264
  </div>
261
265
  <br />
262
266
 
package/dist/index.d.cts CHANGED
@@ -45,5 +45,4 @@ declare function momentModule(context: DatePluginContext): string;
45
45
  */
46
46
  declare function plugin(options?: DatePluginOptions): Plugin<DatePluginContext>;
47
47
  //#endregion
48
- export { DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig, __ΩStormDateInterface, __ΩTimeUnit, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
49
- //# sourceMappingURL=index.d.cts.map
48
+ export { DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig, __ΩStormDateInterface, __ΩTimeUnit, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
package/dist/index.d.mts CHANGED
@@ -45,5 +45,4 @@ declare function momentModule(context: DatePluginContext): string;
45
45
  */
46
46
  declare function plugin(options?: DatePluginOptions): Plugin<DatePluginContext>;
47
47
  //#endregion
48
- export { DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig, __ΩStormDateInterface, __ΩTimeUnit, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
49
- //# sourceMappingURL=index.d.mts.map
48
+ export { DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig, __ΩStormDateInterface, __ΩTimeUnit, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
package/dist/index.mjs CHANGED
@@ -1947,5 +1947,4 @@ export function isWithinRange(date: Moment, [start, end]: [Moment, Moment]) {
1947
1947
  };
1948
1948
 
1949
1949
 
1950
- `}function ka(e={}){return{name:`date`,dependsOn:[Sa(e.env)],async config(){this.log(y.TRACE,"Providing default configuration for the Powerlines `date` build plugin.");let t={date:C(e,{type:`date-fns`})};return(!t.date.type||![`date-fns`,`dayjs`,`luxon`,`moment`].includes(t.date.type))&&(t.date.type&&this.log(y.WARN,`Invalid date library type "${t.date.type}" specified. Defaulting to "date-fns".`),t.date.type=`date-fns`),this.log(y.DEBUG,`Using date library: ${t.date.type}`),t},async configResolved(){this.log(y.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.dependencies[this.config.date.type]=`latest`},async prepare(){this.log(y.TRACE,`Preparing the Date runtime artifacts for the Powerlines project.`);let e;switch(this.config.date.type){case`dayjs`:e=Ea;break;case`luxon`:e=Da;break;case`moment`:e=Oa;break;case`date-fns`:default:e=Ta;break}await this.emitBuiltin(await Promise.resolve(e(this)),`date`,`date.ts`)}}}var Aa=ka;export{Ta as dateFnsModule,Ea as dayjsModule,Aa as default,Da as luxonModule,Oa as momentModule,ka as plugin};
1951
- //# sourceMappingURL=index.mjs.map
1950
+ `}function ka(e={}){return{name:`date`,dependsOn:[Sa(e.env)],async config(){this.log(y.TRACE,"Providing default configuration for the Powerlines `date` build plugin.");let t={date:C(e,{type:`date-fns`})};return(!t.date.type||![`date-fns`,`dayjs`,`luxon`,`moment`].includes(t.date.type))&&(t.date.type&&this.log(y.WARN,`Invalid date library type "${t.date.type}" specified. Defaulting to "date-fns".`),t.date.type=`date-fns`),this.log(y.DEBUG,`Using date library: ${t.date.type}`),t},async configResolved(){this.log(y.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.dependencies[this.config.date.type]=`latest`},async prepare(){this.log(y.TRACE,`Preparing the Date runtime artifacts for the Powerlines project.`);let e;switch(this.config.date.type){case`dayjs`:e=Ea;break;case`luxon`:e=Da;break;case`moment`:e=Oa;break;case`date-fns`:default:e=Ta;break}await this.emitBuiltin(await Promise.resolve(e(this)),`date`,`date.ts`)}}}var Aa=ka;export{Ta as dateFnsModule,Ea as dayjsModule,Aa as default,Da as luxonModule,Oa as momentModule,ka as plugin};
@@ -4209,5 +4209,4 @@ declare type __ΩDatePluginUserConfig = any[];
4209
4209
  declare type __ΩDatePluginResolvedConfig = any[];
4210
4210
  declare type __ΩDatePluginContext = any[];
4211
4211
  //#endregion
4212
- export { DatePluginUserConfig as a, __ΩDatePluginOptions as c, Plugin as d, DatePluginResolvedConfig as i, __ΩDatePluginResolvedConfig as l, DatePluginContext as n, __ΩDateLibraryType as o, DatePluginOptions as r, __ΩDatePluginContext as s, DateLibraryType as t, __ΩDatePluginUserConfig as u };
4213
- //# sourceMappingURL=plugin-hV5_FRg3.d.cts.map
4212
+ export { DatePluginUserConfig as a, __ΩDatePluginOptions as c, Plugin as d, DatePluginResolvedConfig as i, __ΩDatePluginResolvedConfig as l, DatePluginContext as n, __ΩDateLibraryType as o, DatePluginOptions as r, __ΩDatePluginContext as s, DateLibraryType as t, __ΩDatePluginUserConfig as u };
@@ -4208,5 +4208,4 @@ declare type __ΩDatePluginUserConfig = any[];
4208
4208
  declare type __ΩDatePluginResolvedConfig = any[];
4209
4209
  declare type __ΩDatePluginContext = any[];
4210
4210
  //#endregion
4211
- export { DatePluginUserConfig as a, __ΩDatePluginOptions as c, Plugin as d, DatePluginResolvedConfig as i, __ΩDatePluginResolvedConfig as l, DatePluginContext as n, __ΩDateLibraryType as o, DatePluginOptions as r, __ΩDatePluginContext as s, DateLibraryType as t, __ΩDatePluginUserConfig as u };
4212
- //# sourceMappingURL=plugin-pf21oD6W.d.mts.map
4211
+ export { DatePluginUserConfig as a, __ΩDatePluginOptions as c, Plugin as d, DatePluginResolvedConfig as i, __ΩDatePluginResolvedConfig as l, DatePluginContext as n, __ΩDateLibraryType as o, DatePluginOptions as r, __ΩDatePluginContext as s, DateLibraryType as t, __ΩDatePluginUserConfig as u };
@@ -708,5 +708,4 @@ declare type __ΩDateFormats = any[];
708
708
  declare type __ΩTimeUnit = any[];
709
709
  declare type __ΩStormDateInterface = any[];
710
710
  //#endregion
711
- export { __ΩStormDateInterface as a, __ΩDateFormats as i, StormDateInterface as n, __ΩTimeUnit as o, TimeUnit as r, DateFormats as t };
712
- //# sourceMappingURL=runtime-B8LVkjWB.d.cts.map
711
+ export { __ΩStormDateInterface as a, __ΩDateFormats as i, StormDateInterface as n, __ΩTimeUnit as o, TimeUnit as r, DateFormats as t };
@@ -708,5 +708,4 @@ declare type __ΩDateFormats = any[];
708
708
  declare type __ΩTimeUnit = any[];
709
709
  declare type __ΩStormDateInterface = any[];
710
710
  //#endregion
711
- export { __ΩStormDateInterface as a, __ΩDateFormats as i, StormDateInterface as n, __ΩTimeUnit as o, TimeUnit as r, DateFormats as t };
712
- //# sourceMappingURL=runtime-DPe0V01H.d.mts.map
711
+ export { __ΩStormDateInterface as a, __ΩDateFormats as i, StormDateInterface as n, __ΩTimeUnit as o, TimeUnit as r, DateFormats as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.60",
3
+ "version": "0.12.62",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "repository": {
@@ -128,15 +128,15 @@
128
128
  "files": ["dist/**/*"],
129
129
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
130
130
  "dependencies": {
131
- "@powerlines/plugin-env": "^0.13.57",
132
- "@storm-software/config-tools": "^1.188.53",
131
+ "@powerlines/plugin-env": "^0.13.59",
132
+ "@storm-software/config-tools": "^1.188.54",
133
133
  "@stryke/path": "^0.22.0",
134
- "powerlines": "^0.30.2"
134
+ "powerlines": "^0.30.4"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/nx": "^0.10.51",
137
+ "@powerlines/nx": "^0.10.53",
138
138
  "@types/node": "^24.10.1"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "cac32f77cda8960ceaf2645f04f2c88f16eb4aae"
141
+ "gitHead": "06488a5f1026e506b1e45e3cf15cca029908f02a"
142
142
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/components/date-fns.ts","../src/components/dayjs.ts","../src/components/luxon.ts","../src/components/moment.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AA2BA;;iBAAgB,aAAA,UAAuB;;;;;;;AAAvC;;iBCAgB,WAAA,UAAqB;;;;;;;ADArC;;iBEAgB,WAAA,UAAqB;;;;;;;AFArC;;iBGAgB,YAAA,UAAsB;;;;AHAtC;;iBIWgB,MAAA,WACL,oBACR,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/components/date-fns.ts","../src/components/dayjs.ts","../src/components/luxon.ts","../src/components/moment.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AA2BA;;iBAAgB,aAAA,UAAuB;;;;;;;AAAvC;;iBCAgB,WAAA,UAAqB;;;;;;;ADArC;;iBEAgB,WAAA,UAAqB;;;;;;;AFArC;;iBGAgB,YAAA,UAAsB;;;;AHAtC;;iBIWgB,MAAA,WACL,oBACR,OAAO"}