Update Deno configuration and import statements to use full URLs

This commit is contained in:
wood chen 2025-02-08 01:32:40 +08:00
parent ec53c5ec17
commit 36214f024a
3 changed files with 10 additions and 13 deletions

View File

@ -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
View File

@ -0,0 +1,5 @@
{
"imports": {
"std/": "https://deno.land/std@0.220.1/"
}
}

View File

@ -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 {