nuxt-ui-elements 0.1.18 → 0.1.20
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/module.json
CHANGED
|
@@ -32,7 +32,8 @@ function parseDateInput(input) {
|
|
|
32
32
|
return parseDate(datePart);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
const withTimezone = isoString.replace("Z", "+00:00[UTC]");
|
|
36
|
+
return parseZonedDateTime(withTimezone);
|
|
36
37
|
}
|
|
37
38
|
if (typeof input === "string") {
|
|
38
39
|
if (input.includes("T") || input.includes(" ")) {
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Standard utility library
|
|
3
|
-
* Import from '#std' for tree-shakeable utilities
|
|
2
|
+
* Standard utility library
|
|
4
3
|
*
|
|
5
4
|
* @example
|
|
6
|
-
* import
|
|
5
|
+
* import std from '#std'
|
|
7
6
|
*
|
|
8
|
-
* const text = plur('item', count)
|
|
9
|
-
* const slug = slugify('Hello World')
|
|
10
|
-
* const nextMonth = date.add(date.today(), 1, 'month')
|
|
7
|
+
* const text = std.plur('item', count)
|
|
8
|
+
* const slug = std.slugify('Hello World')
|
|
9
|
+
* const nextMonth = std.date.add(std.date.today(), 1, 'month')
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import plur from "plur";
|
|
12
|
+
import slugify from "@sindresorhus/slugify";
|
|
13
|
+
import * as date from "./std/date.js";
|
|
14
|
+
declare const _default: {
|
|
15
|
+
readonly plur: typeof plur;
|
|
16
|
+
readonly slugify: typeof slugify;
|
|
17
|
+
readonly date: typeof date;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import plur from "plur";
|
|
2
|
+
import slugify from "@sindresorhus/slugify";
|
|
3
|
+
import * as date from "./std/date.js";
|
|
4
|
+
export default {
|
|
5
|
+
plur,
|
|
6
|
+
slugify,
|
|
7
|
+
date
|
|
8
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-elements",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "A collection of beautiful, animated UI components for Nuxt applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/genu/nuxt-ui-elements.git",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@nuxt/test-utils": "^3.22.0",
|
|
41
41
|
"@types/culori": "^4.0.1",
|
|
42
42
|
"@types/node": "latest",
|
|
43
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
43
44
|
"changelogen": "^0.6.2",
|
|
44
45
|
"eslint": "^9.39.2",
|
|
45
46
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish && git push --follow-tags",
|
|
65
66
|
"test": "vitest run",
|
|
66
67
|
"test:watch": "vitest watch",
|
|
68
|
+
"test:coverage": "vitest run --coverage",
|
|
67
69
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
68
70
|
}
|
|
69
71
|
}
|