-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7538080
commit e851dc2
Showing
6 changed files
with
19 additions
and
28 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,3 +1,5 @@ | ||
{ | ||
"deno.enable": true | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"deno.unstable": false | ||
} |
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,7 +1,7 @@ | ||
# deno_s3 | ||
|
||
![ci](https://github.com/lucacasonato/deno_aws_sign_v4/workflows/ci/badge.svg) | ||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].0/mod.ts) | ||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].1/mod.ts) | ||
[![Coverage Status](https://coveralls.io/repos/github/lucacasonato/deno_s3/badge.svg?branch=main)](https://coveralls.io/github/lucacasonato/deno_s3?branch=main) | ||
|
||
Amazon S3 for Deno | ||
|
@@ -11,7 +11,7 @@ Amazon S3 for Deno | |
## Example | ||
|
||
```ts | ||
import { S3Bucket } from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import { S3Bucket } from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
const bucket = new S3Bucket({ | ||
accessKeyID: Deno.env.get("AWS_ACCESS_KEY_ID")!, | ||
|
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 |
---|---|---|
|
@@ -2,17 +2,17 @@ export { | |
AWSSignerV4, | ||
toAmz, | ||
toDateStamp, | ||
} from "https://deno.land/x/[email protected].0/mod.ts"; | ||
} from "https://deno.land/x/[email protected].1/mod.ts"; | ||
export type { | ||
Credentials, | ||
Signer, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { createHash } from "https://deno.land/std@0.84.0/hash/mod.ts"; | ||
import { createHash } from "https://deno.land/std@0.95.0/hash/mod.ts"; | ||
export function sha256Hex(data: string | Uint8Array): string { | ||
const hasher = createHash("sha256"); | ||
hasher.update(data); | ||
return hasher.toString("hex"); | ||
} | ||
export { default as parseXML } from "https://raw.githubusercontent.com/nekobato/deno-xml-parser/0bc4c2bd2f5fad36d274279978ca57eec57c680c/index.ts"; | ||
export { decode as decodeXMLEntities } from "https://deno.land/x/[email protected]/lib/xml-entities.js"; | ||
export { pooledMap } from "https://deno.land/std@0.84.0/async/pool.ts"; | ||
export { pooledMap } from "https://deno.land/std@0.95.0/async/pool.ts"; |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ const encoder = new TextEncoder(); | |
Deno.test({ | ||
name: "put object", | ||
async fn() { | ||
const res = await bucket.putObject("test", encoder.encode("Test1"), { | ||
await bucket.putObject("test", encoder.encode("Test1"), { | ||
contentType: "text/plain", | ||
}); | ||
|
||
|
@@ -26,7 +26,7 @@ Deno.test({ | |
Deno.test({ | ||
name: "put object with % in key", | ||
async fn() { | ||
const res = await bucket.putObject( | ||
await bucket.putObject( | ||
"ltest/versions/1.0.0/raw/fixtures/%", | ||
encoder.encode("Test1"), | ||
{ contentType: "text/plain" }, | ||
|
@@ -40,7 +40,7 @@ Deno.test({ | |
Deno.test({ | ||
name: "put object with @ in key", | ||
async fn() { | ||
const res = await bucket.putObject( | ||
await bucket.putObject( | ||
"dex/versions/1.0.0/raw/lib/deps/[email protected]/README.md", | ||
encoder.encode("bla"), | ||
{ contentType: "text/plain" }, | ||
|
@@ -56,7 +56,7 @@ Deno.test({ | |
Deno.test({ | ||
name: "put object with 日本語 in key", | ||
async fn() { | ||
const res = await bucket.putObject( | ||
await bucket.putObject( | ||
"servest/versions/1.0.0/raw/fixtures/日本語.txt", | ||
encoder.encode("bla"), | ||
{ contentType: "text/plain" }, | ||
|
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