aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-28 23:56:45 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-28 23:56:45 -0800
commitbf4943eec152ca1617db9c004f19fa5c27aa4b82 (patch)
treea59d793b36a9c28c2ccf7f74c61f48a5502bbcc1 /src/api
parent97d17904d3f6b850e8973b84d6b4ad5e22afb941 (diff)
downloadbun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.tar.gz
bun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.tar.zst
bun-bf4943eec152ca1617db9c004f19fa5c27aa4b82.zip
Implement TOML parser
No Date/DateTime/Time/Local Time yet
Diffstat (limited to 'src/api')
-rw-r--r--src/api/schema.d.ts3
-rw-r--r--src/api/schema.js4
-rw-r--r--src/api/schema.peechy1
-rw-r--r--src/api/schema.zig3
4 files changed, 11 insertions, 0 deletions
diff --git a/src/api/schema.d.ts b/src/api/schema.d.ts
index f0437d19c..015f6af40 100644
--- a/src/api/schema.d.ts
+++ b/src/api/schema.d.ts
@@ -20,6 +20,7 @@ export enum Loader {
css = 5,
file = 6,
json = 7,
+ toml = 8,
}
export const LoaderKeys = {
1: "jsx",
@@ -36,6 +37,8 @@ export const LoaderKeys = {
file: "file",
7: "json",
json: "json",
+ 8: "toml",
+ toml: "toml",
};
export enum FrameworkEntryPointType {
client = 1,
diff --git a/src/api/schema.js b/src/api/schema.js
index 0405b4457..da91af252 100644
--- a/src/api/schema.js
+++ b/src/api/schema.js
@@ -6,6 +6,7 @@ const Loader = {
5: 5,
6: 6,
7: 7,
+ 8: 8,
jsx: 1,
js: 2,
ts: 3,
@@ -13,6 +14,7 @@ const Loader = {
css: 5,
file: 6,
json: 7,
+ toml: 8,
};
const LoaderKeys = {
1: "jsx",
@@ -22,6 +24,7 @@ const LoaderKeys = {
5: "css",
6: "file",
7: "json",
+ 8: "toml",
jsx: "jsx",
js: "js",
ts: "ts",
@@ -29,6 +32,7 @@ const LoaderKeys = {
css: "css",
file: "file",
json: "json",
+ toml: "toml",
};
const FrameworkEntryPointType = {
1: 1,
diff --git a/src/api/schema.peechy b/src/api/schema.peechy
index 5dea057a9..58ca3f013 100644
--- a/src/api/schema.peechy
+++ b/src/api/schema.peechy
@@ -8,6 +8,7 @@ smol Loader {
css = 5;
file = 6;
json = 7;
+ toml = 8;
}
smol FrameworkEntryPointType {
diff --git a/src/api/schema.zig b/src/api/schema.zig
index 4bca9cd1f..8f21c350c 100644
--- a/src/api/schema.zig
+++ b/src/api/schema.zig
@@ -353,6 +353,9 @@ pub const Api = struct {
/// json
json,
+ /// toml
+ toml,
+
_,
pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void {