aboutsummaryrefslogtreecommitdiff
path: root/examples/isRoute.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-16 15:46:20 -0700
committerGravatar GitHub <noreply@github.com> 2022-05-16 15:46:20 -0700
commita37f86e89dc01f884a1b4474c27c79d5932093a0 (patch)
tree4732a1a1c032f2e6788f3b8d7151c5d5db15fb38 /examples/isRoute.js
parent2bd0dcfdfaf6c385e927570b0e102385dc8c3975 (diff)
downloadbun-a37f86e89dc01f884a1b4474c27c79d5932093a0.tar.gz
bun-a37f86e89dc01f884a1b4474c27c79d5932093a0.tar.zst
bun-a37f86e89dc01f884a1b4474c27c79d5932093a0.zip
`bun:sqlite` (#167)
* :scissors: * Add the slow version * draw the rest of the owl * Fix crash when allocating lots of memory * [Bun.Transipiler] Support passing objects * [JS Parser] Support passing objects to macros via Bun.Transpiler * Update JSSQLStatement.cpp * Embed SQLite * Add SQLite to Dockerfile * [sqlite] Add quick one-off queries without creating a whole object * [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind` * Implement `bun:sqlite` * return null * Fix updating query * Update bun.d.ts * more tests * Support variadic arguments, write tests and add types * Update sqlite.d.ts * Update sqlite.d.ts * latest * Implement `Database.loadExtension` and `Database.setCustomSQLite` * Support `require.resolve` * [napi] Improve string performance * [bun.js] Support some of `node:module` * another test * [sqlite] Support serialize & deserialize * [`bun:ffi`] Implement `CFunction` and `linkSymbols` * [bun.js] Fix crash in `Buffer.from` * Update sqlite.test.js * Document linkSymbols * docs * Update README.md
Diffstat (limited to 'examples/isRoute.js')
-rw-r--r--examples/isRoute.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/isRoute.js b/examples/isRoute.js
new file mode 100644
index 000000000..d1717a0e9
--- /dev/null
+++ b/examples/isRoute.js
@@ -0,0 +1,3 @@
+export function isRoute(expr, env) {
+ return env.url.pathname.includes(expr.arguments[0].toString());
+}
t.js?h=ciro/queue-response-experiment&id=5ce393aab815f38ce9594d8a7d481a608ee8524c&follow=1'>Fix `path.normalize` edge case. (#4042)Gravatar Ai Hoshino 2-1/+2 2023-08-06Fixes #4001 (#4034)Gravatar Jarred Sumner 3-9/+108 2023-08-06Fixes #4029 and fixes #4022 (#4032)Gravatar Jarred Sumner 4-29/+34 2023-08-06Fixes #4010 (#4031)Gravatar Jarred Sumner 1-24/+17 2023-08-06Update build-idGravatar Jarred Sumner 1-1/+1 2023-08-06Bind require.resolve() (#4030)Gravatar Jarred Sumner 4-13/+47 2023-08-06Fixes #4020Gravatar Jarred Sumner 2-1/+6 2023-08-06Running missing scripts exits with non-0 (#4026)Gravatar Yash Sharma 2-1/+13 2023-08-06[install] handle `bun add` of existing `peerDependencies` correctly (#4028)Gravatar Alex Lam S.L 3-22/+98 2023-08-06fix nanbun-v0.7.3Gravatar Jarred Sumner 1-0/+3 2023-08-06Update coverage.mdGravatar Jarred Sumner 1-1/+1 2023-08-06Update lol-htmlGravatar Jarred Sumner 1-0/+0 2023-08-06Fixes #3129 (#4018)Gravatar Jarred Sumner 3-104/+58 2023-08-06Code coverage for `bun test` (#3975)Gravatar Jarred Sumner 32-61/+1211 2023-08-06feat: impl `dns.getServers` (#3982)Gravatar Ai Hoshino 5-3/+135 2023-08-06Implement --test-name-pattern (#3998)Gravatar dave caruso 8-7/+151 2023-08-05Fix(cli/init): support subpath entrypoint. (#4002)Gravatar Ai Hoshino 1-1/+8 2023-08-05Remove Bun.plugin transpiler hook, encourage usage of `--preload` instead (#3...Gravatar dave caruso 5-243/+1 2023-08-04Support --dev/-D and support more flags on bun install (#3989)Gravatar Colin McDonnell 5-9/+14 2023-08-04fix macro string escaping (#3967)Gravatar Dylan Conway 4-8/+97 2023-08-04Fixes #3991Gravatar Jarred Sumner 2-4/+40 2023-08-04[install] handle `workspace:*` correctly (#3994)Gravatar Alex Lam S.L 2-54/+158 2023-08-04Update import-meta.mdGravatar Jarred Sumner 1-2/+1 2023-08-04Fix incorrect docsGravatar Jarred Sumner 1-2/+3 2023-08-04[types] fix `blob.json()` (#3995)Gravatar Alex Lam S.L 1-4/+4 2023-08-04FFI typo (#3973)Gravatar dave caruso 3-5/+10 2023-08-04Buffer.copy should ignore out-of-range sourceEnd (#3971)Gravatar Yifei Wang 2-17/+34 2023-08-04[install] store resolved workspace path in lockfile (#3974)Gravatar Alex Lam S.L 5-82/+187 2023-08-04Fix types (#3963)Gravatar Colin McDonnell 14-274/+892 2023-08-04feat(hot-clear-screen): clear terminal on hot reload (#3976)Gravatar simylein 1-0/+7