From d29957ad17956016c35a04f5f1f98565e58e8a2e Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Wed, 6 Mar 2019 07:24:53 -0800 Subject: Replace deno.land/x/ with deno.land/std/ (denoland/deno_std#239) Original: https://github.com/denoland/deno_std/commit/0fc13fffbdb59d6aee2b11ff17a5de382273126b --- examples/README.md | 6 +++--- examples/gist.ts | 2 +- examples/ws.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/README.md b/examples/README.md index 874626ec4..7f828093a 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,11 +1,11 @@ # Deno Example Programs -These files are accessible for import via "https://deno.land/x/examples/". +These files are accessible for import via "https://deno.land/std/examples/". Try it: ``` -> deno https://deno.land/x/examples/gist.ts README.md +> deno https://deno.land/std/examples/gist.ts README.md ``` ## Alias Based Installation @@ -14,5 +14,5 @@ Add this to your `.bash_profile` ``` export GIST_TOKEN=ABC # Generate at https://github.com/settings/tokens -alias gist="deno https://deno.land/x/examples/gist.ts --allow-net --allow-env" +alias gist="deno https://deno.land/std/examples/gist.ts --allow-net --allow-env" ``` diff --git a/examples/gist.ts b/examples/gist.ts index f64f69226..fb6837059 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -2,7 +2,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { args, env, exit, readFile } = Deno; -import { parse } from "https://deno.land/x/flags/mod.ts"; +import { parse } from "https://deno.land/std/flags/mod.ts"; function pathBase(p: string): string { const parts = p.split("/"); diff --git a/examples/ws.ts b/examples/ws.ts index f25a15687..83e890bc0 100644 --- a/examples/ws.ts +++ b/examples/ws.ts @@ -1,10 +1,10 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { serve } from "https://deno.land/x/http/mod.ts"; +import { serve } from "https://deno.land/std/http/mod.ts"; import { acceptWebSocket, isWebSocketCloseEvent, isWebSocketPingEvent -} from "https://deno.land/x/ws/mod.ts"; +} from "https://deno.land/std/ws/mod.ts"; async function main(): Promise { console.log("websocket server is running on 0.0.0.0:8080"); -- cgit v1.2.3