mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 05:32:00 +08:00
Update Deno configuration and import statements to use full URLs
This commit is contained in:
parent
ec53c5ec17
commit
36214f024a
11
deno.json
11
deno.json
@ -1,13 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"lib": ["deno.window"],
|
||||
"strict": true
|
||||
},
|
||||
"importMap": {
|
||||
"imports": {
|
||||
"std/": "https://deno.land/std@0.220.1/"
|
||||
}
|
||||
"imports": {
|
||||
"std/": "https://deno.land/std@0.220.1/"
|
||||
},
|
||||
"tasks": {
|
||||
"start": "deno run --allow-net --allow-env --allow-read main.ts",
|
||||
|
5
import_map.json
Normal file
5
import_map.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"std/": "https://deno.land/std@0.220.1/"
|
||||
}
|
||||
}
|
7
main.ts
7
main.ts
@ -1,7 +1,6 @@
|
||||
import { serve } from "std/http/server.ts";
|
||||
import { crypto } from "std/crypto/mod.ts";
|
||||
import { encode as base64Encode, decode as base64Decode } from "std/encoding/base64.ts";
|
||||
import { createHmac } from "crypto";
|
||||
import { serve } from "https://deno.land/std@0.220.1/http/server.ts";
|
||||
import { crypto } from "https://deno.land/std@0.220.1/crypto/mod.ts";
|
||||
import { encode as base64Encode, decode as base64Decode } from "https://deno.land/std@0.220.1/encoding/base64.ts";
|
||||
|
||||
// 类型定义
|
||||
interface Vendor {
|
||||
|
Loading…
x
Reference in New Issue
Block a user