weekly-fifty 1.0.2 → 1.0.3
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 +4 -1
- package/dist/index.js +4 -1
- package/package.json +2 -5
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ async function Fetch(options = {}) {
|
|
|
47
47
|
return fetch(url).then(parse);
|
|
48
48
|
}
|
|
49
49
|
((Fetch2) => {
|
|
50
|
-
const m_timestamp = import_myzod.default.object({ _seconds: import_myzod.default.required(import_myzod.default.number()), _nanoseconds: import_myzod.default.required(import_myzod.default.number()) }, { allowUnknown: true }).map(({ _seconds, _nanoseconds }) => new Date(_seconds * 1e3 + _nanoseconds
|
|
50
|
+
const m_timestamp = import_myzod.default.object({ _seconds: import_myzod.default.required(import_myzod.default.number()), _nanoseconds: import_myzod.default.required(import_myzod.default.number()) }, { allowUnknown: true }).map(({ _seconds, _nanoseconds }) => new Date(_seconds * 1e3 + _nanoseconds / 1e6));
|
|
51
51
|
const m_question = import_myzod.default.object({ qTitle: import_myzod.default.required(import_myzod.default.string()), qAnswer: import_myzod.default.required(import_myzod.default.string()) }, { allowUnknown: true }).map(({ qTitle, qAnswer }) => ({ title: qTitle, answer: qAnswer }));
|
|
52
52
|
const m_quiz = import_myzod.default.object(
|
|
53
53
|
{
|
|
@@ -83,6 +83,9 @@ async function Fetch(options = {}) {
|
|
|
83
83
|
return response.json().then((data) => m_quiz.parse(data));
|
|
84
84
|
};
|
|
85
85
|
})(Fetch || (Fetch = {}));
|
|
86
|
+
|
|
87
|
+
// source/index.ts
|
|
88
|
+
Fetch().then((quiz) => console.log(quiz.creation));
|
|
86
89
|
// Annotate the CommonJS export names for ESM import in node:
|
|
87
90
|
0 && (module.exports = {
|
|
88
91
|
TW50
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ async function Fetch(options = {}) {
|
|
|
17
17
|
return fetch(url).then(parse);
|
|
18
18
|
}
|
|
19
19
|
((Fetch2) => {
|
|
20
|
-
const m_timestamp = z.object({ _seconds: z.required(z.number()), _nanoseconds: z.required(z.number()) }, { allowUnknown: true }).map(({ _seconds, _nanoseconds }) => new Date(_seconds * 1e3 + _nanoseconds
|
|
20
|
+
const m_timestamp = z.object({ _seconds: z.required(z.number()), _nanoseconds: z.required(z.number()) }, { allowUnknown: true }).map(({ _seconds, _nanoseconds }) => new Date(_seconds * 1e3 + _nanoseconds / 1e6));
|
|
21
21
|
const m_question = z.object({ qTitle: z.required(z.string()), qAnswer: z.required(z.string()) }, { allowUnknown: true }).map(({ qTitle, qAnswer }) => ({ title: qTitle, answer: qAnswer }));
|
|
22
22
|
const m_quiz = z.object(
|
|
23
23
|
{
|
|
@@ -53,6 +53,9 @@ async function Fetch(options = {}) {
|
|
|
53
53
|
return response.json().then((data) => m_quiz.parse(data));
|
|
54
54
|
};
|
|
55
55
|
})(Fetch || (Fetch = {}));
|
|
56
|
+
|
|
57
|
+
// source/index.ts
|
|
58
|
+
Fetch().then((quiz) => console.log(quiz.creation));
|
|
56
59
|
export {
|
|
57
60
|
exports_exports as TW50
|
|
58
61
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"name": "weekly-fifty",
|
|
6
6
|
"author": "Reuben Roessler",
|
|
7
7
|
"repository": "rroessler/npm.weekly-fifty",
|
|
@@ -20,11 +20,9 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"// BUILD //": "",
|
|
22
22
|
"build": "tsup ./source/index.ts --dts --format esm,cjs",
|
|
23
|
-
"// TEST //": "",
|
|
24
|
-
"test": "",
|
|
25
23
|
"// RELEASE //": "",
|
|
26
24
|
"release": "run-s build release:np",
|
|
27
|
-
"release:np": "np"
|
|
25
|
+
"release:np": "np --no-tests --no-release-drafts --message 'v%s'"
|
|
28
26
|
},
|
|
29
27
|
"dependencies": {
|
|
30
28
|
"myzod": "^1.12.1"
|
|
@@ -34,7 +32,6 @@
|
|
|
34
32
|
"np": "^10.2.0",
|
|
35
33
|
"npm-run-all2": "^8.0.4",
|
|
36
34
|
"tsup": "^8.5.1",
|
|
37
|
-
"tsx": "^4.20.6",
|
|
38
35
|
"typescript": "^5.9.3"
|
|
39
36
|
}
|
|
40
37
|
}
|