{code}
4 | );
5 | };
6 |
7 | export default InlineCode;
8 |
--------------------------------------------------------------------------------
/src/data/vercel-url.ts:
--------------------------------------------------------------------------------
1 | export const vercelURL =
2 | "https://vercel.com/?utm_source=jsdocs-io&utm_campaign=oss";
3 |
4 | export const vercelPrivacyPolicyURL =
5 | "https://vercel.com/legal/privacy-policy?utm_source=jsdocs-io&utm_campaign=oss";
6 |
--------------------------------------------------------------------------------
/src/components/CharSetTag.tsx:
--------------------------------------------------------------------------------
1 | import Head from "next/head";
2 |
3 | const CharSetTag = () => {
4 | return (
5 |
6 |
7 |
8 | );
9 | };
10 |
11 | export default CharSetTag;
12 |
--------------------------------------------------------------------------------
/next-env.d.ts:
--------------------------------------------------------------------------------
1 | /// 5 | API extraction from unlicensed or proprietary packages is not supported 6 |
7 |5 | Unfortunately type definitions are currently not available for this 6 | package 7 |
8 |{description}
} 17 | 18 | {!overview && !description &&Overview not available.
} 19 |
11 | Type definitions are available in the{" "}
12 |
13 |
19 | jsDocs.io
20 |
21 |
22 |
23 | );
24 | };
25 |
26 | export default Logo;
27 |
--------------------------------------------------------------------------------
/test/lib/parse-json-stream.test.ts:
--------------------------------------------------------------------------------
1 | import stream from "stream";
2 | import parseJSONStream from "../../src/lib/parse-json-stream";
3 |
4 | describe("parseJSONStream", () => {
5 | it("rejects when the JSON stream is invalid", async () => {
6 | expect.assertions(1);
7 |
8 | try {
9 | await parseJSONStream({ jsonStream: stream.Readable.from(["{"]) });
10 | } catch (err) {
11 | expect(err).toBeDefined();
12 | }
13 | });
14 |
15 | it("resolves when the JSON stream is valid", async () => {
16 | expect.assertions(1);
17 |
18 | const got = await parseJSONStream({
19 | jsonStream: stream.Readable.from(['{"x":1}']),
20 | });
21 |
22 | expect(got).toStrictEqual({ x: 1 });
23 | });
24 | });
25 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | # github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: jsdocs_io
5 | # open_collective: # Replace with a single Open Collective username
6 | # ko_fi: # Replace with a single Ko-fi username
7 | # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | # liberapay: # Replace with a single Liberapay username
10 | # issuehunt: # Replace with a single IssueHunt username
11 | # otechie: # Replace with a single Otechie username
12 | # custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/src/lib/get-package-page-error-props.ts:
--------------------------------------------------------------------------------
1 | import { GetStaticPropsResult } from "next";
2 | import { PackagePageKind } from "./package-page-kind";
3 | import { week } from "./revalidate-times";
4 |
5 | export interface PackagePagePropsError {
6 | readonly kind: PackagePageKind.Error;
7 | readonly message?: string;
8 | }
9 |
10 | const getPackagePageErrorProps = ({
11 | message = "Page Not Found",
12 | revalidate = week,
13 | }: {
14 | message?: string;
15 | revalidate?: number | boolean;
16 | } = {}): GetStaticPropsResultNo {kindDescription} dependencies.
27 | )} 28 |
20 |
21 | {tokens.map((line, index) => (
22 |
23 | {line.map((token, key) => (
24 |
25 | ))}
26 |
27 | ))}
28 |
29 |
30 | )}
31 | {message}
26 |
17 | To add a badge like this one
18 |
19 | to your {"package's"} README, use the codes available below.
20 |
23 | You may also use Shields.io to create
24 | a custom badge linking to
28 |
29 |
34 | Try with
14 | Loading... 15 |
16 | ); 17 | } 18 | 19 | const packages = searchResults.map(({ package: pkg }) => { 20 | return { 21 | name: pkg.name, 22 | version: pkg.version, 23 | description: pkg.description, 24 | date: pkg.date as string | undefined, 25 | publisherName: pkg.publisher?.username as string | undefined, 26 | }; 27 | }); 28 | if (!packages.length) { 29 | return ( 30 |No search results
31 | ); 32 | } 33 | 34 | return ( 35 |{description}
} 50 | 51 |
52 | Version {version}
53 | {date && (
54 | <>
55 | {" "}
56 | published
2 |
3 |
4 |
5 |
19 |
20 |
21 |
22 |
This page contains the privacy policy for jsDocs.io.
43 | 44 |The privacy policy was last updated on October 4, 2023.
45 |55 | On jsDocs.io we do not directly collect personal data from our visitors. 56 |
57 |67 | jsDocs.io is hosted on Vercel, which may collect 68 | some data to provide its hosting services. 69 |
70 | 71 |72 | To learn more about the data collected by Vercel, you can visit their{" "} 73 | privacy policy page. 74 |
75 |85 | jsDocs.io may contain links to external websites not operated by us and 86 | with different privacy policies. 87 |
88 | 89 |90 | We recommend you to review the privacy policy of any website you may 91 | visit. 92 |
93 |103 | You can reach us by email at{" "} 104 | scibona.edoardo@proton.me. 105 |
106 |This website uses the following open source software:
63 | 64 |101 | The custom styling used in this website is generated by{" "} 102 | Tailwind CSS. 103 |
104 | 105 |112 | The stylesheet generated by Tailwind CSS includes a version of{" "} 113 | 114 | modern-normalize 115 | 116 | . 117 |
118 | 119 |134 | The icons used in this website come from the{" "} 135 | Heroicons set. 136 |
137 | 138 |50 | Thank you for your interest in supporting jsDocs.io, your contribution 51 | will help fund the ongoing development and maintenance of this open 52 | source project! 53 |
54 | 55 |56 | You can{" "} 57 | 58 | 59 | become a backer or sponsor on Patreon 60 | 61 | {" "} 62 | with a monthly contribution and have your name or company logo listed 63 | below. 64 |
65 |