@powerlines/plugin-date 0.12.690 → 0.12.691
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/components/date-fns.d.cts +0 -1
- package/dist/components/date-fns.d.cts.map +1 -1
- package/dist/components/date-fns.d.mts +0 -1
- package/dist/components/dayjs.d.cts +0 -1
- package/dist/components/dayjs.d.cts.map +1 -1
- package/dist/components/dayjs.d.mts +0 -1
- package/dist/components/luxon.d.cts +0 -1
- package/dist/components/luxon.d.cts.map +1 -1
- package/dist/components/luxon.d.mts +0 -1
- package/dist/components/moment.d.cts +0 -1
- package/dist/components/moment.d.cts.map +1 -1
- package/dist/components/moment.d.mts +0 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/types/env.d.cts +1 -2
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts +1 -2
- package/dist/types/plugin.d.cts +0 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-fns.d.cts","names":[],"sources":["../../src/components/date-fns.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-fns.d.cts","names":[],"sources":["../../src/components/date-fns.ts"],"mappings":";;;;;;;;iBA2BgB,cAAc,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs.d.cts","names":[],"sources":["../../src/components/dayjs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dayjs.d.cts","names":[],"sources":["../../src/components/dayjs.ts"],"mappings":";;;;;;;;iBA2BgB,YAAY,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"luxon.d.cts","names":[],"sources":["../../src/components/luxon.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"luxon.d.cts","names":[],"sources":["../../src/components/luxon.ts"],"mappings":";;;;;;;;iBA2BgB,YAAY,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moment.d.cts","names":[],"sources":["../../src/components/moment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"moment.d.cts","names":[],"sources":["../../src/components/moment.ts"],"mappings":";;;;;;;;iBA2BgB,aAAa,SAAS"}
|
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,10 @@ import { dateFnsModule } from "./components/date-fns.cjs";
|
|
|
3
3
|
import { dayjsModule } from "./components/dayjs.cjs";
|
|
4
4
|
import { luxonModule } from "./components/luxon.cjs";
|
|
5
5
|
import { momentModule } from "./components/moment.cjs";
|
|
6
|
+
import "./components/index.cjs";
|
|
6
7
|
import { DateEnv, DateFormats, PowerlinesDateInterface, TimeUnit } from "./types/env.cjs";
|
|
8
|
+
import "./types/index.cjs";
|
|
7
9
|
import { Plugin } from "powerlines";
|
|
8
|
-
|
|
9
10
|
//#region src/index.d.ts
|
|
10
11
|
declare module "powerlines" {
|
|
11
12
|
interface Config {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;YAkCY;IACR,OAAO;;;;;;iBAOK,OAAO,iBAAiB,oBAAoB,mBAC1D,UAAS,oBAyEJ,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,9 +3,10 @@ import { dateFnsModule } from "./components/date-fns.mjs";
|
|
|
3
3
|
import { dayjsModule } from "./components/dayjs.mjs";
|
|
4
4
|
import { luxonModule } from "./components/luxon.mjs";
|
|
5
5
|
import { momentModule } from "./components/moment.mjs";
|
|
6
|
+
import "./components/index.mjs";
|
|
6
7
|
import { DateEnv, DateFormats, PowerlinesDateInterface, TimeUnit } from "./types/env.mjs";
|
|
8
|
+
import "./types/index.mjs";
|
|
7
9
|
import { Plugin } from "powerlines";
|
|
8
|
-
|
|
9
10
|
//#region src/index.d.ts
|
|
10
11
|
declare module "powerlines" {
|
|
11
12
|
interface Config {
|
package/dist/types/env.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EnvInterface } from "@powerlines/plugin-env/types/env";
|
|
2
|
-
|
|
3
2
|
//#region src/types/env.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The various types of date formats used in Storm Stack applications.
|
|
@@ -226,7 +225,7 @@ interface PowerlinesDateInterface<TDate, TLocale> {
|
|
|
226
225
|
* @param value - The value to create a date object from. Can be a string, number, or JavaScript Date object.
|
|
227
226
|
* @returns A date object of type `TDate` or `null` if the input is `null`.
|
|
228
227
|
*/
|
|
229
|
-
createDate: <TArg = undefined, TResultingDate =
|
|
228
|
+
createDate: <TArg = undefined, TResultingDate = TArg extends null ? null : TArg extends undefined ? TDate : TDate | null>(value?: TArg) => TResultingDate;
|
|
230
229
|
/**
|
|
231
230
|
* Creates a date object from a JavaScript Date object.
|
|
232
231
|
*
|
package/dist/types/env.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;UAuBiB,YAAY;;;;;;EAM3B,UAAU;;;;;;EAOV,qBAAqB;;;;;;EAOrB,YAAY;;;;;;EAOZ,uBAAuB;;;;;;EAOvB,WAAW;;;;;;EAOX,MAAM;;;;;;EAON,OAAO;;;;;;EAOP,YAAY;;;;;;EAOZ,cAAc;;;;;;EAOd,cAAc;;;;;;EAOd,SAAS;;;;;;EAOT,cAAc;;;;;;EAOd,YAAY;;;;;;EAOZ,UAAU;;;;;;EAOV,UAAU;;;;;;EAOV,SAAS;;;;;;EAOT,SAAS;;;;;;EAOT,UAAU;;;;;;EAOV,aAAa;;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,UAAU;;;;;;EAOhD;;;;;;;EAQA,eAAe,MAAM,UAAU;;;;;;;;EAS/B,eAAe,OAAO,OAAO,KAAK,UAAU;;;;;;;EAQ5C,kBAAkB;;UAGH,gBAAgB;;;;;;EAM/B"}
|
package/dist/types/env.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EnvInterface } from "@powerlines/plugin-env/types/env";
|
|
2
|
-
|
|
3
2
|
//#region src/types/env.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The various types of date formats used in Storm Stack applications.
|
|
@@ -226,7 +225,7 @@ interface PowerlinesDateInterface<TDate, TLocale> {
|
|
|
226
225
|
* @param value - The value to create a date object from. Can be a string, number, or JavaScript Date object.
|
|
227
226
|
* @returns A date object of type `TDate` or `null` if the input is `null`.
|
|
228
227
|
*/
|
|
229
|
-
createDate: <TArg = undefined, TResultingDate =
|
|
228
|
+
createDate: <TArg = undefined, TResultingDate = TArg extends null ? null : TArg extends undefined ? TDate : TDate | null>(value?: TArg) => TResultingDate;
|
|
230
229
|
/**
|
|
231
230
|
* Creates a date object from a JavaScript Date object.
|
|
232
231
|
*
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;KAyBY;UAEK;;;;;;;;;;;;;EAaf,OAAO;;;;EAKP,MAAM;;;;;;;;;EAUN;;UAGe,6BAA6B;;;;EAI5C,OAAO,KAAK;;UAGG,iCAAiC;;;;EAIhD,MAAM,SAAS,KAAK;;KAGV,kBACV,wBAAwB,2BAA2B,4BACjD,iBAAiB"}
|
package/dist/types/plugin.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-date",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.691",
|
|
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,16 +103,16 @@
|
|
|
103
103
|
"types": "./dist/index.d.cts",
|
|
104
104
|
"files": ["dist/**/*"],
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@powerlines/plugin-env": "0.16.
|
|
107
|
-
"@storm-software/config-tools": "^1.190.
|
|
106
|
+
"@powerlines/plugin-env": "0.16.347",
|
|
107
|
+
"@storm-software/config-tools": "^1.190.92",
|
|
108
108
|
"@stryke/path": "^0.29.22",
|
|
109
109
|
"defu": "^6.1.7",
|
|
110
|
-
"powerlines": "0.47.
|
|
110
|
+
"powerlines": "0.47.143"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
114
|
-
"@types/node": "^25.9.
|
|
113
|
+
"@powerlines/plugin-plugin": "0.12.555",
|
|
114
|
+
"@types/node": "^25.9.5"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "cea2b02d3fb6556ff2e53576b6a17787b4e28d67"
|
|
118
118
|
}
|