@powerlines/plugin-date 0.12.762 → 0.12.763

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/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -28,7 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  //#endregion
29
29
  require('./types/index.cjs');
30
30
  let _powerlines_plugin_env = require("@powerlines/plugin-env");
31
- _powerlines_plugin_env = __toESM(_powerlines_plugin_env, 1);
32
31
  let powerlines_utils = require("powerlines/utils");
33
32
  let _powerlines_plugin_env_schemas_env = require("@powerlines/plugin-env/schemas/env");
34
33
  let zod = require("zod");
@@ -1977,7 +1976,7 @@ const dateEnvSchema = _powerlines_plugin_env_schemas_env.envSchema.extend({ LOCA
1977
1976
  * A Powerlines plugin to assist in developing other Powerlines plugins.
1978
1977
  */
1979
1978
  function plugin(options = {}) {
1980
- return [(0, _powerlines_plugin_env.default)(options.env), {
1979
+ return [(0, _powerlines_plugin_env.plugin)(options.env), {
1981
1980
  name: "date",
1982
1981
  async config() {
1983
1982
  this.debug("Providing default configuration for the Powerlines `date` build plugin.");
@@ -2024,7 +2023,6 @@ function plugin(options = {}) {
2024
2023
  exports.dateEnvSchema = dateEnvSchema;
2025
2024
  exports.dateFnsModule = dateFnsModule;
2026
2025
  exports.dayjsModule = dayjsModule;
2027
- exports.default = plugin;
2028
- exports.plugin = plugin;
2029
2026
  exports.luxonModule = luxonModule;
2030
- exports.momentModule = momentModule;
2027
+ exports.momentModule = momentModule;
2028
+ exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -179,5 +179,5 @@ declare module "powerlines" {
179
179
  */
180
180
  declare function plugin<TContext extends DatePluginContext = DatePluginContext>(options?: DatePluginOptions): Plugin<TContext>[];
181
181
  //#endregion
182
- export { DateEnv, DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, PowerlinesDateInterface, TimeUnit, dateEnvSchema, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
182
+ export { DateEnv, DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, PowerlinesDateInterface, TimeUnit, dateEnvSchema, dateFnsModule, dayjsModule, luxonModule, momentModule, plugin };
183
183
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -179,5 +179,5 @@ declare module "powerlines" {
179
179
  */
180
180
  declare function plugin<TContext extends DatePluginContext = DatePluginContext>(options?: DatePluginOptions): Plugin<TContext>[];
181
181
  //#endregion
182
- export { DateEnv, DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, PowerlinesDateInterface, TimeUnit, dateEnvSchema, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
182
+ export { DateEnv, DateFormats, DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, PowerlinesDateInterface, TimeUnit, dateEnvSchema, dateFnsModule, dayjsModule, luxonModule, momentModule, plugin };
183
183
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./types/index.mjs";
2
- import env from "@powerlines/plugin-env";
2
+ import { plugin as plugin$1 } from "@powerlines/plugin-env";
3
3
  import { getTypescriptFileHeader } from "powerlines/utils";
4
4
  import { envSchema } from "@powerlines/plugin-env/schemas/env";
5
5
  import * as z from "zod";
@@ -1947,7 +1947,7 @@ const dateEnvSchema = envSchema.extend({ LOCALE: z.string().optional().meta({
1947
1947
  * A Powerlines plugin to assist in developing other Powerlines plugins.
1948
1948
  */
1949
1949
  function plugin(options = {}) {
1950
- return [env(options.env), {
1950
+ return [plugin$1(options.env), {
1951
1951
  name: "date",
1952
1952
  async config() {
1953
1953
  this.debug("Providing default configuration for the Powerlines `date` build plugin.");
@@ -1991,5 +1991,5 @@ function plugin(options = {}) {
1991
1991
  }
1992
1992
 
1993
1993
  //#endregion
1994
- export { dateEnvSchema, dateFnsModule, dayjsModule, plugin as default, plugin, luxonModule, momentModule };
1994
+ export { dateEnvSchema, dateFnsModule, dayjsModule, luxonModule, momentModule, plugin };
1995
1995
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.762",
3
+ "version": "0.12.763",
4
4
  "private": false,
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
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
@@ -103,17 +103,17 @@
103
103
  "types": "./dist/index.d.cts",
104
104
  "files": ["dist/**/*"],
105
105
  "dependencies": {
106
- "@powerlines/plugin-env": "^0.16.418",
106
+ "@powerlines/plugin-env": "^0.16.419",
107
107
  "@storm-software/config-tools": "^1.190.133",
108
108
  "@stryke/path": "^0.29.35",
109
109
  "defu": "^6.1.7",
110
- "powerlines": "^0.47.209",
110
+ "powerlines": "^0.47.210",
111
111
  "zod": "^4.4.3"
112
112
  },
113
113
  "devDependencies": {
114
- "@powerlines/plugin-plugin": "^0.12.622",
114
+ "@powerlines/plugin-plugin": "^0.12.623",
115
115
  "@types/node": "^25.9.5"
116
116
  },
117
117
  "publishConfig": { "access": "public" },
118
- "gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
118
+ "gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
119
119
  }