@contember/engine-s3-plugin 2.1.0-beta.1 → 2.2.0-alpha.1
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.
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/S3ConfigProcessor.cjs.map +1 -1
- package/dist/development/src/S3ConfigProcessor.js.map +1 -1
- package/dist/development/src/S3SchemaContributor.cjs.map +1 -1
- package/dist/development/src/S3SchemaContributor.js.map +1 -1
- package/dist/development/src/S3Service.cjs.map +1 -1
- package/dist/development/src/S3Service.js.map +1 -1
- package/dist/development/src/S3Signer.cjs.map +1 -1
- package/dist/development/src/S3Signer.js.map +1 -1
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/S3ConfigProcessor.cjs.map +1 -1
- package/dist/production/src/S3ConfigProcessor.js.map +1 -1
- package/dist/production/src/S3SchemaContributor.cjs.map +1 -1
- package/dist/production/src/S3SchemaContributor.js.map +1 -1
- package/dist/production/src/S3Service.cjs.map +1 -1
- package/dist/production/src/S3Service.js.map +1 -1
- package/dist/production/src/S3Signer.cjs.map +1 -1
- package/dist/production/src/S3Signer.js.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/S3ConfigProcessor.d.ts +1 -1
- package/dist/types/S3ConfigProcessor.d.ts.map +1 -1
- package/dist/types/S3SchemaContributor.d.ts +1 -1
- package/dist/types/S3SchemaContributor.d.ts.map +1 -1
- package/dist/types/S3Service.d.ts +3 -3
- package/dist/types/S3Service.d.ts.map +1 -1
- package/dist/types/S3Signer.d.ts +1 -1
- package/dist/types/S3Signer.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/S3ConfigProcessor.ts +1 -1
- package/src/S3SchemaContributor.ts +5 -5
- package/src/S3Service.ts +4 -4
- package/src/S3Signer.ts +1 -1
- package/src/index.ts +7 -7
- package/tests/cases/authorizator.test.ts +1 -1
- package/tests/cases/signRequest.test.ts +1 -1
- package/vitest.config.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/engine-s3-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-alpha.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/production/index.js",
|
|
6
6
|
"typings": "./dist/types/index.d.ts",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@contember/engine-plugins": "2.1.0-beta.
|
|
27
|
-
"@contember/graphql-utils": "2.1.0-beta.
|
|
28
|
-
"@contember/typesafe": "2.1.0-beta.
|
|
26
|
+
"@contember/engine-plugins": "2.1.0-beta.2",
|
|
27
|
+
"@contember/graphql-utils": "2.1.0-beta.2",
|
|
28
|
+
"@contember/typesafe": "2.1.0-beta.2",
|
|
29
29
|
"mime-types": "^3.0.2",
|
|
30
30
|
"picomatch": "^4.0.3",
|
|
31
31
|
"qs": "^6.15.0",
|
package/src/S3ConfigProcessor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigProcessor, ConfigTemplate, ConfigTemplateContext } from '@contember/engine-plugins'
|
|
2
|
-
import { Project3Config, s3ConfigSchema } from './Config'
|
|
2
|
+
import { Project3Config, s3ConfigSchema } from './Config.js'
|
|
3
3
|
import * as Typesafe from '@contember/typesafe'
|
|
4
4
|
|
|
5
5
|
export class S3ConfigProcessor implements ConfigProcessor<Project3Config> {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
GraphQLSchemaConfig,
|
|
9
9
|
GraphQLString,
|
|
10
10
|
} from 'graphql'
|
|
11
|
-
import { S3Service, S3ServiceFactory } from './S3Service'
|
|
12
|
-
import { Project3Config, resolveS3Config, S3Config } from './Config'
|
|
11
|
+
import { S3Service, S3ServiceFactory } from './S3Service.js'
|
|
12
|
+
import { Project3Config, resolveS3Config, S3Config } from './Config.js'
|
|
13
13
|
import { GraphQLSchemaContributor, GraphQLSchemaContributorContext, Providers } from '@contember/engine-plugins'
|
|
14
|
-
import * as types from './S3SchemaTypes'
|
|
15
|
-
import { S3Acl, S3GenerateSignedUploadInput, S3SignedRead, S3SignedUpload } from './S3SchemaTypes'
|
|
16
|
-
import { S3ObjectAuthorizator } from './S3ObjectAuthorizator'
|
|
14
|
+
import * as types from './S3SchemaTypes.js'
|
|
15
|
+
import { S3Acl, S3GenerateSignedUploadInput, S3SignedRead, S3SignedUpload } from './S3SchemaTypes.js'
|
|
16
|
+
import { S3ObjectAuthorizator } from './S3ObjectAuthorizator.js'
|
|
17
17
|
|
|
18
18
|
interface Identity {
|
|
19
19
|
projectRoles: string[]
|
package/src/S3Service.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { extension as resolveExtension } from 'mime-types'
|
|
2
|
-
import { resolveS3PublicBaseUrl, S3Config } from './Config'
|
|
2
|
+
import { resolveS3PublicBaseUrl, S3Config } from './Config.js'
|
|
3
3
|
import { ForbiddenError, UserInputError } from '@contember/graphql-utils'
|
|
4
4
|
import { Providers } from '@contember/engine-plugins'
|
|
5
|
-
import { S3Signer } from './S3Signer'
|
|
6
|
-
import { S3GenerateSignedUploadInput } from './S3SchemaTypes'
|
|
7
|
-
import { S3ObjectAuthorizator } from './S3ObjectAuthorizator'
|
|
5
|
+
import { S3Signer } from './S3Signer.js'
|
|
6
|
+
import { S3GenerateSignedUploadInput } from './S3SchemaTypes.js'
|
|
7
|
+
import { S3ObjectAuthorizator } from './S3ObjectAuthorizator.js'
|
|
8
8
|
|
|
9
9
|
type SignedReadUrl = {
|
|
10
10
|
url: string
|
package/src/S3Signer.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Plugin, SchemaContributorArgs } from '@contember/engine-plugins'
|
|
2
|
-
import { S3ConfigProcessor } from './S3ConfigProcessor'
|
|
3
|
-
import { S3SchemaContributor } from './S3SchemaContributor'
|
|
4
|
-
import { S3ServiceFactory } from './S3Service'
|
|
5
|
-
import { Project3Config } from './Config'
|
|
2
|
+
import { S3ConfigProcessor } from './S3ConfigProcessor.js'
|
|
3
|
+
import { S3SchemaContributor } from './S3SchemaContributor.js'
|
|
4
|
+
import { S3ServiceFactory } from './S3Service.js'
|
|
5
|
+
import { Project3Config } from './Config.js'
|
|
6
6
|
|
|
7
|
-
export * from './S3ObjectAuthorizator'
|
|
8
|
-
export * from './S3SchemaContributor'
|
|
9
|
-
export * from './S3Service'
|
|
7
|
+
export * from './S3ObjectAuthorizator.js'
|
|
8
|
+
export * from './S3SchemaContributor.js'
|
|
9
|
+
export * from './S3Service.js'
|
|
10
10
|
|
|
11
11
|
export default class S3 implements Plugin<Project3Config> {
|
|
12
12
|
name = 'contember/s3'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expect, test } from 'bun:test'
|
|
2
|
-
import { S3ObjectAuthorizator, S3Service } from '../../src'
|
|
2
|
+
import { S3ObjectAuthorizator, S3Service } from '../../src/index.js'
|
|
3
3
|
|
|
4
4
|
const mocked = new Date('2021-07-02T17:22Z')
|
|
5
5
|
const constantUuid = '9fce3907-ff2b-45bb-b4ce-eff5527dd315'
|
package/vitest.config.ts
DELETED