File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ and then use it to construct a client for the AWS service API you want to use.
2323A bare-bones example from ` demo.ts ` :
2424
2525``` typescript
26- import { ApiFactory } from ' https://deno.land/x/aws_api/ client/mod.ts ' ;
27- import { STS } from ' https://deno.land/x/aws_api/ services/sts/mod.ts ' ;
26+ import { ApiFactory } from ' @cloudydeno/aws-api/ client' ;
27+ import { STS } from ' @cloudydeno/aws-api/ services/sts' ;
2828
2929// Create a service client for AWS Security Token Service
3030const sts = new ApiFactory ().makeNew (STS );
@@ -85,7 +85,7 @@ For other services, or to cut down on dependency size by selecting the available
8585you can import from [ the /x/aws_api Web Service] [ webservice ] :
8686
8787``` typescript
88- import { ApiFactory } from ' https://deno.land/x/aws_api/ client/mod.ts ' ;
88+ import { ApiFactory } from ' @cloudydeno/aws-api/ client' ;
8989import { Pricing } from ' https://aws-api.deno.dev/latest/services/pricing.ts' ;
9090
9191const pricing = new ApiFactory ().makeNew (Pricing );
@@ -120,7 +120,7 @@ const ec2_europe = new ApiFactory({
120120
121121## Changelog
122122
123- * ` TBD ` on ` TBD ` : minor adjustments for Deno 2 type compatibility
123+ * ` v0.9.0 ` on ` 2025-09-15 ` : Migrate to JSR packaging and imports, targetting Deno 2+
124124* ` v0.8.1 ` on ` 2023-02-26 ` : hotfixes in extras files
125125* ` v0.8.0 ` on ` 2023-02-26 ` : codegen ` v0.4 `
126126 * Use Deno's ` /std@0.177.0 ` (except for MD5).
Original file line number Diff line number Diff line change 1212 "@takker/md5" : " jsr:@takker/md5@^0.1.0"
1313 },
1414 "exports" : {
15+ "./client/api-factory.ts" : " ./client/api-factory.ts" ,
1516 "./client/client.ts" : " ./client/client.ts" ,
1617 "./client/common.ts" : " ./client/common.ts" ,
1718 "./client/credentials.ts" : " ./client/credentials.ts" ,
4243 },
4344 "publish" : {
4445 "exclude" : [
45- " deps.ts" ,
46+ " examples" ,
47+ " demo.ts" ,
48+ " demo-codegen.ts" ,
4649 " .github"
4750 ]
4851 }
Original file line number Diff line number Diff line change 1- import { type Credentials , DefaultCredentialsProvider , getDefaultRegion } from ".. /client/credentials.ts" ;
2- import { AWSSignerV4 } from ".. /client/signing.ts" ;
1+ import { type Credentials , DefaultCredentialsProvider , getDefaultRegion } from "@cloudydeno/aws-api /client/credentials.ts" ;
2+ import { AWSSignerV4 } from "@cloudydeno/aws-api /client/signing.ts" ;
33
44export interface GetSignedUrlOptions {
55 bucket : string ;
Original file line number Diff line number Diff line change 1- import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts " ;
1+ import { assertEquals } from "@std/assert/equals " ;
22import { getPresignedUrl } from "./s3-presign.ts" ;
33
44const date = new Date ( 'Fri, 24 May 2013 00:00:00 GMT' )
Original file line number Diff line number Diff line change 11import { pooledMap } from "@std/async/pool" ;
22
3- import {
3+ import type {
44 PutObjectRequest , PutObjectOutput ,
55 CreateMultipartUploadRequest , CreateMultipartUploadOutput ,
66 UploadPartRequest , UploadPartOutput ,
You can’t perform that action at this time.
0 commit comments