Skip to content

Commit

Permalink
chore: update dependencies (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Apr 25, 2021
1 parent 7538080 commit e851dc2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 28 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,21 @@ on:

jobs:
test:
name: test-${{ matrix.deno }}-${{ matrix.unstable && 'unstable' || 'stable' }}-${{ matrix.no-check && 'nocheck' || 'tsc' }}
name: test-${{ matrix.deno == 'canary' && 'canary' || 'stable' }}-${{ matrix.unstable && 'unstable' || 'stable' }}-${{ matrix.no-check && 'nocheck' || 'tsc' }}
runs-on: ubuntu-latest
strategy:
matrix:
deno: [release, canary]
deno: [v1.x, canary]
unstable: [false, true]
no-check: [false, true]
env:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
steps:
- name: Install Deno (Unix)
if: |
!startsWith(matrix.os, 'windows')
run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $GITHUB_PATH
- name: Install Deno (Windows)
if: startsWith(matrix.os, 'windows')
run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $env:GITHUB_PATH
- name: Upgrade to Deno canary
if: matrix.deno == 'canary'
run: deno upgrade --canary
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno }}

- uses: actions/checkout@v2

Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
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
}
4 changes: 2 additions & 2 deletions README.md
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
Expand All @@ -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")!,
Expand Down
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
8 changes: 4 additions & 4 deletions src/bucket_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});

Expand All @@ -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" },
Expand All @@ -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" },
Expand All @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export {
assert,
assertEquals,
assertThrowsAsync,
} from "https://deno.land/std@0.84.0/testing/asserts.ts";
} from "https://deno.land/std@0.95.0/testing/asserts.ts";

0 comments on commit e851dc2

Please sign in to comment.