-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from hayd/0.42.0
Update to 0.42.0 and require --unstable
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import _JSZip from "https://dev.jspm.io/[email protected]"; | ||
import { WalkOptions, walk } from "https://deno.land/std@v0.41.0/fs/mod.ts"; | ||
import { SEP, join } from "https://deno.land/std@v0.41.0/path/mod.ts"; | ||
import { WalkOptions, walk } from "https://deno.land/std@v0.42.0/fs/mod.ts"; | ||
import { SEP, join } from "https://deno.land/std@v0.42.0/path/mod.ts"; | ||
import { | ||
InputFileFormat, | ||
JSZipFileOptions, | ||
|
@@ -39,14 +39,14 @@ export async function zipDir( | |
Deno.chdir(dir); | ||
try { | ||
for await (const f of walk(".", options)) { | ||
if (f.info.isDirectory) { | ||
if (f.isDirectory) { | ||
// skip directories | ||
continue; | ||
} | ||
const contents = await Deno.readFile(f.filename); | ||
const contents = await Deno.readFile(f.path); | ||
|
||
// In order to support Windows we do this ridiculousness. | ||
let ff = f.filename.split(SEP); | ||
let ff = f.path.split(SEP); | ||
let zz = z; | ||
while (ff.length > 1) { | ||
zz = zz.folder(ff.shift()!); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters