From e918d7b287acbc2d32b63199637528a26a46239e Mon Sep 17 00:00:00 2001 From: "soya.miruku" Date: Thu, 23 Nov 2023 15:00:01 +0000 Subject: [PATCH] mapping --- README.md | 6 +++--- compile.ts | 4 ++-- project.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 87a51c2..4dac9a3 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ $ git clone https://github.com/soya-miruku/typed-surql ```ts # Or Using Deno -import {TypedSurQL} from 'https://deno.land/x/typed_surql@v1.0.20/mod.ts'; +import {TypedSurQL} from 'https://deno.land/x/typed_surql@v1.0.22/mod.ts'; # Or npm/bun import { TypedSurQL } from '@soyamiruku/typed-surl'; @@ -41,7 +41,7 @@ TypedSurQL.Init(env.DB_URL, { // wait until the connection is made await TypedSurQL.Wait(5); -import { TypedSurQL, Model, Q, RelationEdge } from '../src/index.ts'; +import { TypedSurQL, Model, Q, RelationEdge } from 'https://deno.land/x/typed_surql@v1.0.22/mod.ts'; import { Lemons } from "./lemons"; @Q.Table({ name: "eats" }) @@ -79,7 +79,7 @@ const result = await User.select("*", { fetch: ["lemonsEaten"]}); // query functions -import { query } from 'https://deno.land/x/typed_surql@v1.0.20/mod.ts'; +import { query } from 'https://deno.land/x/typed_surql@v1.0.22/mod.ts'; // field param provides all surrealdb functions / operators and the table name as well allowing you to select the model properties: diff --git a/compile.ts b/compile.ts index 8ef4e16..cb48ce8 100644 --- a/compile.ts +++ b/compile.ts @@ -9,7 +9,7 @@ await build({ shims: { // see JS docs for overview and more options deno: false, - webSocket: false, + webSocket: false }, package: { // package.json properties @@ -52,7 +52,7 @@ await build({ "build": "esbuild ./esm/index.js --format=esm --minify --bundle --sourcemap --outfile=./dist/index.js", }, }, - // mappings: { "./src/library/WebSocket/deno.ts": "./src/library/WebSocket/node.ts" }, + mappings: { "https://deno.land/x/surrealdb/mod.ts": { name: "surrealdb.js", version: "latest" } }, compilerOptions: { lib: ["ESNext", "DOM"], sourceMap: true, diff --git a/project.json b/project.json index 9f26aee..3e6e7ac 100644 --- a/project.json +++ b/project.json @@ -1,4 +1,4 @@ { "name": "@soyamiruku/typed-surql", - "version": "1.0.21" + "version": "1.0.22" } \ No newline at end of file