@farming-labs/theme 0.0.27 → 0.0.29
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/_virtual/_rolldown/runtime.mjs +1 -26
- package/dist/ai-search-dialog.mjs +1 -1
- package/dist/code-block-copy-wrapper.d.mts +1 -1
- package/dist/docs-layout.d.mts +1 -1
- package/dist/docs-layout.mjs +4 -4
- package/dist/docs-page-client.mjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/mdx.d.mts +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/page-actions.mjs +1 -1
- package/package.json +2 -2
- package/dist/get-app-dir.d.mts +0 -9
- package/dist/get-app-dir.test.d.mts +0 -1
- package/dist/get-app-dir.test.mjs +0 -41
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -77
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.mjs +0 -1356
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.mjs +0 -1119
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.mjs +0 -1091
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.mjs +0 -4
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.mjs +0 -3
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.mjs +0 -1821
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.mjs +0 -171
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs +0 -124
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.mjs +0 -1334
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.mjs +0 -105
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.mjs +0 -118
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.mjs +0 -455
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.mjs +0 -168
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.mjs +0 -3087
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.mjs +0 -384
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.mjs +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.mjs +0 -16
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.mjs +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.mjs +0 -15
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.mjs +0 -13
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.mjs +0 -34
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.mjs +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.mjs +0 -122
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.mjs +0 -39
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.mjs +0 -99
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.mjs +0 -25
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.mjs +0 -14
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.mjs +0 -21
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.mjs +0 -5
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.mjs +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.mjs +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.mjs +0 -25
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.mjs +0 -8
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.mjs +0 -30
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -939
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -81
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs +0 -51
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs +0 -81
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.mjs +0 -9
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.mjs +0 -125
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs +0 -8
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.mjs +0 -50
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/utils.XdZDrNZV.mjs +0 -48
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.mjs +0 -2613
- package/dist/serialize-icon.d.mts +0 -4
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
-
key = keys[i];
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
16
|
-
__defProp(to, key, {
|
|
17
|
-
get: ((k) => from[k]).bind(null, key),
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return to;
|
|
24
|
-
};
|
|
25
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
-
value: mod,
|
|
27
|
-
enumerable: true
|
|
28
|
-
}) : target, mod));
|
|
29
4
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
5
|
|
|
31
6
|
//#endregion
|
|
32
|
-
export {
|
|
7
|
+
export { __require };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { highlight } from "sugar-high";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { highlight } from "sugar-high";
|
|
7
7
|
|
|
8
8
|
//#region src/ai-search-dialog.tsx
|
|
9
9
|
/**
|
package/dist/docs-layout.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DocsConfig, PageFrontmatter } from "@farming-labs/docs";
|
|
1
2
|
import { ReactNode } from "react";
|
|
2
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import { DocsConfig, PageFrontmatter } from "@farming-labs/docs";
|
|
4
4
|
|
|
5
5
|
//#region src/docs-layout.d.ts
|
|
6
6
|
/**
|
package/dist/docs-layout.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { DocsAIFeatures } from "./docs-ai-features.mjs";
|
|
2
1
|
import { getNextAppDir } from "./get-app-dir.mjs";
|
|
3
|
-
import { DocsCommandSearch } from "./docs-command-search.mjs";
|
|
4
2
|
import { serializeIcon } from "./serialize-icon.mjs";
|
|
5
3
|
import { DocsPageClient } from "./docs-page-client.mjs";
|
|
4
|
+
import { DocsAIFeatures } from "./docs-ai-features.mjs";
|
|
5
|
+
import { DocsCommandSearch } from "./docs-command-search.mjs";
|
|
6
6
|
import { SidebarSearchWithAI } from "./sidebar-search-ai.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import matter from "gray-matter";
|
|
11
|
-
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
12
11
|
import { buildPageOpenGraph, buildPageTwitter } from "@farming-labs/docs";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
|
|
14
14
|
//#region src/docs-layout.tsx
|
|
15
15
|
/** Resolve a frontmatter `icon` string to a ReactNode via the icon registry. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { PageActions } from "./page-actions.mjs";
|
|
4
|
+
import { DocsBody, DocsPage, EditOnGitHub } from "fumadocs-ui/layouts/docs/page";
|
|
4
5
|
import { useEffect, useState } from "react";
|
|
5
6
|
import { createPortal } from "react-dom";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { DocsBody, DocsPage, EditOnGitHub } from "fumadocs-ui/layouts/docs/page";
|
|
8
7
|
import { usePathname, useRouter } from "next/navigation";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/docs-page-client.tsx
|
|
11
11
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DocsCommandSearch } from "./docs-command-search.mjs";
|
|
2
1
|
import { PageActions } from "./page-actions.mjs";
|
|
3
2
|
import { DocsPageClient } from "./docs-page-client.mjs";
|
|
3
|
+
import { DocsCommandSearch } from "./docs-command-search.mjs";
|
|
4
4
|
import { createDocsLayout, createDocsMetadata, createPageMetadata } from "./docs-layout.mjs";
|
|
5
5
|
import { RootProvider } from "./provider.mjs";
|
|
6
6
|
import { DefaultUIDefaults, fumadocs } from "./default/index.mjs";
|
package/dist/mdx.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MDXImg } from "./mdx-img.mjs";
|
|
2
|
+
import { CodeBlockCopyData } from "@farming-labs/docs";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import { CodeBlockCopyData } from "@farming-labs/docs";
|
|
5
5
|
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
|
|
6
6
|
import * as fumadocs_ui_components_codeblock0 from "fumadocs-ui/components/codeblock";
|
|
7
7
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
package/dist/mdx.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createPreWithCopyCallback } from "./code-block-copy-wrapper.mjs";
|
|
2
1
|
import { MDXImg } from "./mdx-img.mjs";
|
|
2
|
+
import { createPreWithCopyCallback } from "./code-block-copy-wrapper.mjs";
|
|
3
3
|
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
|
|
4
4
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
5
5
|
|
package/dist/page-actions.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { usePathname } from "next/navigation";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/page-actions.tsx
|
|
8
8
|
const CopyIcon = () => /* @__PURE__ */ jsxs("svg", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"tsdown": "^0.20.3",
|
|
105
105
|
"typescript": "^5.9.3",
|
|
106
106
|
"vitest": "^3.2.4",
|
|
107
|
-
"@farming-labs/docs": "0.0.
|
|
107
|
+
"@farming-labs/docs": "0.0.29"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"@farming-labs/docs": ">=0.0.1",
|
package/dist/get-app-dir.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/get-app-dir.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Resolve Next.js App Router directory.
|
|
4
|
-
* Prefers src/app when present (src directory layout), else app.
|
|
5
|
-
* Use this so docs layout and API resolve MDX content in the same place the CLI generated it.
|
|
6
|
-
*/
|
|
7
|
-
declare function getNextAppDir(root: string): string;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getNextAppDir };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getNextAppDir } from "./get-app-dir.mjs";
|
|
2
|
-
import { afterEach, beforeEach, describe, it } from "./node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.mjs";
|
|
3
|
-
import { globalExpect } from "./node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.mjs";
|
|
4
|
-
import fs from "node:fs";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import os from "node:os";
|
|
7
|
-
|
|
8
|
-
//#region src/get-app-dir.test.ts
|
|
9
|
-
describe("getNextAppDir", () => {
|
|
10
|
-
let tmpDir;
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "get-app-dir-test-"));
|
|
13
|
-
});
|
|
14
|
-
afterEach(() => {
|
|
15
|
-
try {
|
|
16
|
-
fs.rmSync(tmpDir, {
|
|
17
|
-
recursive: true,
|
|
18
|
-
force: true
|
|
19
|
-
});
|
|
20
|
-
} catch {}
|
|
21
|
-
});
|
|
22
|
-
it("returns \"app\" when only app exists", () => {
|
|
23
|
-
fs.mkdirSync(path.join(tmpDir, "app"), { recursive: true });
|
|
24
|
-
globalExpect(getNextAppDir(tmpDir)).toBe("app");
|
|
25
|
-
});
|
|
26
|
-
it("returns \"src/app\" when only src/app exists", () => {
|
|
27
|
-
fs.mkdirSync(path.join(tmpDir, "src", "app"), { recursive: true });
|
|
28
|
-
globalExpect(getNextAppDir(tmpDir)).toBe("src/app");
|
|
29
|
-
});
|
|
30
|
-
it("prefers \"src/app\" when both app and src/app exist", () => {
|
|
31
|
-
fs.mkdirSync(path.join(tmpDir, "app"), { recursive: true });
|
|
32
|
-
fs.mkdirSync(path.join(tmpDir, "src", "app"), { recursive: true });
|
|
33
|
-
globalExpect(getNextAppDir(tmpDir)).toBe("src/app");
|
|
34
|
-
});
|
|
35
|
-
it("returns \"app\" when neither exists (default)", () => {
|
|
36
|
-
globalExpect(getNextAppDir(tmpDir)).toBe("app");
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
export { };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
2
|
-
var comma = ",".charCodeAt(0);
|
|
3
|
-
var semicolon = ";".charCodeAt(0);
|
|
4
|
-
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
5
|
-
var intToChar = new Uint8Array(64);
|
|
6
|
-
var charToInt = new Uint8Array(128);
|
|
7
|
-
for (let i = 0; i < chars.length; i++) {
|
|
8
|
-
const c = chars.charCodeAt(i);
|
|
9
|
-
intToChar[i] = c;
|
|
10
|
-
charToInt[c] = i;
|
|
11
|
-
}
|
|
12
|
-
function encodeInteger(builder, num, relative) {
|
|
13
|
-
let delta = num - relative;
|
|
14
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
15
|
-
do {
|
|
16
|
-
let clamped = delta & 31;
|
|
17
|
-
delta >>>= 5;
|
|
18
|
-
if (delta > 0) clamped |= 32;
|
|
19
|
-
builder.write(intToChar[clamped]);
|
|
20
|
-
} while (delta > 0);
|
|
21
|
-
return num;
|
|
22
|
-
}
|
|
23
|
-
var bufLength = 1024 * 16;
|
|
24
|
-
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
25
|
-
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
26
|
-
} } : { decode(buf) {
|
|
27
|
-
let out = "";
|
|
28
|
-
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
29
|
-
return out;
|
|
30
|
-
} };
|
|
31
|
-
var StringWriter = class {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.pos = 0;
|
|
34
|
-
this.out = "";
|
|
35
|
-
this.buffer = new Uint8Array(bufLength);
|
|
36
|
-
}
|
|
37
|
-
write(v) {
|
|
38
|
-
const { buffer } = this;
|
|
39
|
-
buffer[this.pos++] = v;
|
|
40
|
-
if (this.pos === bufLength) {
|
|
41
|
-
this.out += td.decode(buffer);
|
|
42
|
-
this.pos = 0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
flush() {
|
|
46
|
-
const { buffer, out, pos } = this;
|
|
47
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
function encode(decoded) {
|
|
51
|
-
const writer = new StringWriter();
|
|
52
|
-
let sourcesIndex = 0;
|
|
53
|
-
let sourceLine = 0;
|
|
54
|
-
let sourceColumn = 0;
|
|
55
|
-
let namesIndex = 0;
|
|
56
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
57
|
-
const line = decoded[i];
|
|
58
|
-
if (i > 0) writer.write(semicolon);
|
|
59
|
-
if (line.length === 0) continue;
|
|
60
|
-
let genColumn = 0;
|
|
61
|
-
for (let j = 0; j < line.length; j++) {
|
|
62
|
-
const segment = line[j];
|
|
63
|
-
if (j > 0) writer.write(comma);
|
|
64
|
-
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
65
|
-
if (segment.length === 1) continue;
|
|
66
|
-
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
67
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
68
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
69
|
-
if (segment.length === 4) continue;
|
|
70
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return writer.flush();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
//#endregion
|
|
77
|
-
export { encode };
|