Skip to content

Commit

Permalink
update __
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosSacASac committed Oct 18, 2020
1 parent 54aa566 commit 9769496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions example-deno/file_usage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { registerWorker, FILE, NO_SUPPORT_ERROR, TIME_OUT_ERROR, work } from "../source/worka.js";
import { __ } from 'https://deno.land/x/dirname/mod.ts';
import makeloc from 'https://cdn.deno.land/dirname/versions/1.1.2/raw/mod.ts'//https://x.nest.land/dirname@v1.1.2/mod.ts'


const { __filename, __dirname } = __(import.meta);
const { __dirname, __filename } = makeloc(import.meta)


console.log(`${__dirname}/sort_worka.js`.substr(1));
console.log(`${__dirname}/w.ts`.substr(1));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"try": "node --experimental-modules example/index.js 8080",
"prepare-node-example": "node --experimental-modules source/decorateWorker.js example-node/sort.js example-node/sort_worka.js",
"node-example": "node --experimental-modules example-node/file_usage.js",
"deno-example": "deno example-deno/file_usage.js"
"deno-example": "deno run example-deno/file_usage.js"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 9769496

Please sign in to comment.