wirejs-deploy-amplify-basic 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import { LambdaFunctionURLHandler, APIGatewayProxyEventV2 } from 'aws-lambda';
|
|
|
3
3
|
import { CookieJar, Context, requiresContext } from 'wirejs-resources';
|
|
4
4
|
|
|
5
5
|
// @ts-ignore
|
|
6
|
-
import * as api from '
|
|
6
|
+
import * as api from '../../../api/index';
|
|
7
7
|
|
|
8
8
|
function createContext(event: APIGatewayProxyEventV2) {
|
|
9
9
|
const baseUrl = `https://${event.requestContext.domainName}${event.rawPath}`;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from 'wirejs-resources';
|
|
2
|
-
export
|
|
2
|
+
export * from 'wirejs-resources';
|
|
3
3
|
export { AuthenticationService } from './services/authentication.js';
|
|
4
4
|
export declare class FileService extends Resource {
|
|
5
5
|
constructor(scope: Resource | string, id: string);
|
|
@@ -10,6 +10,6 @@ export declare class FileService extends Resource {
|
|
|
10
10
|
delete(filename: string): Promise<void>;
|
|
11
11
|
list({ prefix }?: {
|
|
12
12
|
prefix?: string | undefined;
|
|
13
|
-
}): AsyncGenerator<string
|
|
13
|
+
}): AsyncGenerator<string, void, unknown>;
|
|
14
14
|
isAlreadyExistsError(error: any): boolean;
|
|
15
15
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { env } from 'process';
|
|
2
2
|
import { S3Client, ListObjectsCommand, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from '@aws-sdk/client-s3';
|
|
3
3
|
import { overrides, Resource, } from 'wirejs-resources';
|
|
4
|
-
|
|
4
|
+
// let's try exporting all the things and overwriting the specific things we
|
|
5
|
+
// want to re-implement.
|
|
6
|
+
export * from 'wirejs-resources';
|
|
5
7
|
import { addResource } from './resource-collector.js';
|
|
6
8
|
import { AuthenticationService } from './services/authentication.js';
|
|
7
9
|
export { AuthenticationService } from './services/authentication.js';
|
|
@@ -51,7 +53,9 @@ export class FileService extends Resource {
|
|
|
51
53
|
const result = await s3.send(command);
|
|
52
54
|
Marker = result.Marker;
|
|
53
55
|
for (const o of result.Contents || []) {
|
|
54
|
-
|
|
56
|
+
if (o.Key) {
|
|
57
|
+
yield o.Key;
|
|
58
|
+
}
|
|
55
59
|
}
|
|
56
60
|
if (!Marker)
|
|
57
61
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"recursive-copy": "^2.0.14",
|
|
31
31
|
"rimraf": "^6.0.1",
|
|
32
32
|
"wirejs-dom": "^1.0.38",
|
|
33
|
-
"wirejs-resources": "^0.1.
|
|
33
|
+
"wirejs-resources": "^0.1.17"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@aws-amplify/backend": "^1.14.0",
|