Skip to content

Commit

Permalink
mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
soya-miruku committed Nov 23, 2023
1 parent bdb1fbb commit e918d7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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" })
Expand Down Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@soyamiruku/typed-surql",
"version": "1.0.21"
"version": "1.0.22"
}

0 comments on commit e918d7b

Please sign in to comment.