@axinom/mosaic-id-guard 0.33.0-rc.0 → 0.33.0-rc.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/graphql/{enforce-strict-permissions.plugin.d.ts → enforce-strict-permissions-plugin.d.ts} +1 -1
- package/dist/graphql/enforce-strict-permissions-plugin.d.ts.map +1 -0
- package/dist/graphql/{enforce-strict-permissions.plugin.js → enforce-strict-permissions-plugin.js} +1 -1
- package/dist/graphql/{enforce-strict-permissions.plugin.js.map → enforce-strict-permissions-plugin.js.map} +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/graphql/{enforce-strict-permissions.plugin.spec.ts → enforce-strict-permissions-plugin.spec.ts} +1 -1
- package/src/graphql/index.ts +1 -1
- package/src/index.ts +2 -2
- package/dist/graphql/enforce-strict-permissions.plugin.d.ts.map +0 -1
- /package/src/graphql/{enforce-strict-permissions.plugin.ts → enforce-strict-permissions-plugin.ts} +0 -0
|
@@ -5,4 +5,4 @@ import { Plugin } from 'postgraphile';
|
|
|
5
5
|
* @param graphileBuildOptions should be of type `Partial<Options> & { permissionDefinition: PermissionDefinition, logger: (log: string | LogMessage, type: LogType) => void }`
|
|
6
6
|
*/
|
|
7
7
|
export declare const EnforceStrictPermissionsPlugin: Plugin;
|
|
8
|
-
//# sourceMappingURL=enforce-strict-permissions
|
|
8
|
+
//# sourceMappingURL=enforce-strict-permissions-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-strict-permissions-plugin.d.ts","sourceRoot":"","sources":["../../src/graphql/enforce-strict-permissions-plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQtC;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,MA+I5C,CAAC"}
|
package/dist/graphql/{enforce-strict-permissions.plugin.js → enforce-strict-permissions-plugin.js}
RENAMED
|
@@ -118,4 +118,4 @@ logger = new mosaic_service_common_1.Logger({ context: exports.EnforceStrictPerm
|
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
120
|
exports.EnforceStrictPermissionsPlugin = EnforceStrictPermissionsPlugin;
|
|
121
|
-
//# sourceMappingURL=enforce-strict-permissions
|
|
121
|
+
//# sourceMappingURL=enforce-strict-permissions-plugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-strict-permissions
|
|
1
|
+
{"version":3,"file":"enforce-strict-permissions-plugin.js","sourceRoot":"","sources":["../../src/graphql/enforce-strict-permissions-plugin.ts"],"names":[],"mappings":";;;AAAA,6DAIiC;AACjC,yEAAuD;AAEvD,+CAAqD;AAOrD;;;;GAIG;AACI,MAAM,8BAA8B,GAAW,CACpD,OAAO,EACP,EACE,oBAAoB,GAAG;IACrB,UAAU,EAAE;QACV,sBAAsB,EAAE,EAAE;QAC1B,oBAAoB,EAAE,EAAE;KACzB;IACD,WAAW,EAAE,EAAE;CAChB;AACD,sCAAsC;AACtC,MAAM,GAAG,IAAI,8BAAM,CAAC,EAAE,OAAO,EAAE,sCAA8B,CAAC,IAAI,EAAE,CAAC,GACvD,EAChB,EAAE;IACF,MAAM,gBAAgB,GACpB,IAAA,qCAAmB,EAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,iBAAiB,GACrB,IAAA,sCAAoB,EAAC,oBAAoB,CAAC,IAAI,IAAI,KAAK,EAAU,CAAC;IACpE,IAAI,0BAAoC,CAAC;IACzC,MAAM,iBAAiB,GAAa,EAAE,CAAC;IACvC,MAAM,eAAe,GAAa,EAAE,CAAC;IACrC,IAAI,iBAAiB,GAAa,EAAE,CAAC;IAErC;;;;;OAKG;IACH,OAAO,CAAC,IAAI,CAA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,CAAC,MAAM,EAAE;gBAClF,OAAO,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE;aAC3C,CAAC,CAAC;SACJ;QAED,8GAA8G;QAC9G,IAAI,0BAA0B,KAAK,SAAS,EAAE;YAC5C,uBAAuB;YACvB,0BAA0B,GAAG,gBAAgB,CAAC,MAAM,CAClD,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAClD,CAAC;SACH;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YACnC,2BAA2B;YAC3B,0BAA0B,GAAG,0BAA0B,CAAC,MAAM,CAC5D,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAClD,CAAC;SACH;aAAM;YACL,8BAA8B;YAC9B,iBAAiB,GAAG,0BAA0B,CAAC,MAAM,CACnD,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAClD,CAAC;SACH;QAED,OAAO,IAAA,0BAAgB,EAAC,MAAM,EAAE;YAC9B,GAAG,iBAAiB;YACpB,GAAG,iBAAiB;SACrB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA/IW,QAAA,8BAA8B,kCA+IzC"}
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './ax-guard-plugin';
|
|
2
|
-
export * from './enforce-strict-permissions
|
|
2
|
+
export * from './enforce-strict-permissions-plugin';
|
|
3
3
|
export * from './guard-context';
|
|
4
4
|
export { setupEndUserAuthentication, setupEndUserGQLSubscriptionAuthentication, setupManagementAuthentication, setupManagementGQLSubscriptionAuthentication, throwEndUserAuthError, throwManagementAuthError, } from './guard-middleware';
|
|
5
5
|
export * from './query-mutation-guard-plugin';
|
package/dist/graphql/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.throwManagementAuthError = exports.throwEndUserAuthError = exports.setupManagementGQLSubscriptionAuthentication = exports.setupManagementAuthentication = exports.setupEndUserGQLSubscriptionAuthentication = exports.setupEndUserAuthentication = void 0;
|
|
18
18
|
__exportStar(require("./ax-guard-plugin"), exports);
|
|
19
|
-
__exportStar(require("./enforce-strict-permissions
|
|
19
|
+
__exportStar(require("./enforce-strict-permissions-plugin"), exports);
|
|
20
20
|
__exportStar(require("./guard-context"), exports);
|
|
21
21
|
var guard_middleware_1 = require("./guard-middleware");
|
|
22
22
|
Object.defineProperty(exports, "setupEndUserAuthentication", { enumerable: true, get: function () { return guard_middleware_1.setupEndUserAuthentication; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PermissionDefinition, getPermissionsForOperation, requiredPermissionsExists, } from '@axinom/mosaic-id-utils';
|
|
2
2
|
export * from './common';
|
|
3
3
|
export * from './graphql';
|
|
4
|
-
export * from './graphql/enforce-strict-permissions
|
|
4
|
+
export * from './graphql/enforce-strict-permissions-plugin';
|
|
5
5
|
export * from './message-bus';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,6CAA6C,CAAC;AAC5D,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@ Object.defineProperty(exports, "getPermissionsForOperation", { enumerable: true,
|
|
|
20
20
|
Object.defineProperty(exports, "requiredPermissionsExists", { enumerable: true, get: function () { return mosaic_id_utils_1.requiredPermissionsExists; } });
|
|
21
21
|
__exportStar(require("./common"), exports);
|
|
22
22
|
__exportStar(require("./graphql"), exports);
|
|
23
|
-
__exportStar(require("./graphql/enforce-strict-permissions
|
|
23
|
+
__exportStar(require("./graphql/enforce-strict-permissions-plugin"), exports);
|
|
24
24
|
__exportStar(require("./message-bus"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAIiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAIiC;AAF/B,6HAAA,0BAA0B,OAAA;AAC1B,4HAAA,yBAAyB,OAAA;AAE3B,2CAAyB;AACzB,4CAA0B;AAC1B,8EAA4D;AAC5D,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-id-guard",
|
|
3
|
-
"version": "0.33.0-rc.
|
|
3
|
+
"version": "0.33.0-rc.1",
|
|
4
4
|
"description": "Authentication and authorization helpers for Axinom Mosaic services",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"lint": "eslint . --ext .ts,.tsx,.js --color --cache"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@axinom/mosaic-id-utils": "^0.15.18-rc.
|
|
32
|
-
"@axinom/mosaic-message-bus": "^0.28.0-rc.
|
|
33
|
-
"@axinom/mosaic-service-common": "^0.50.0-rc.
|
|
34
|
-
"@axinom/mosaic-transactional-inbox-outbox": "^0.10.0-rc.
|
|
31
|
+
"@axinom/mosaic-id-utils": "^0.15.18-rc.1",
|
|
32
|
+
"@axinom/mosaic-message-bus": "^0.28.0-rc.1",
|
|
33
|
+
"@axinom/mosaic-service-common": "^0.50.0-rc.1",
|
|
34
|
+
"@axinom/mosaic-transactional-inbox-outbox": "^0.10.0-rc.1",
|
|
35
35
|
"amqplib": "^0.10.3",
|
|
36
36
|
"express": "^4.17.1",
|
|
37
37
|
"express-bearer-token": "^2.4.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ac738ad5f3de2537f18d9ef05c53b5990af68910"
|
|
69
69
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { gql, makeExtendSchemaPlugin } from 'graphile-utils';
|
|
10
10
|
import { GraphQLSchema } from 'graphql';
|
|
11
11
|
import { PubSub } from 'graphql-subscriptions';
|
|
12
|
-
import { EnforceStrictPermissionsPlugin } from './enforce-strict-permissions
|
|
12
|
+
import { EnforceStrictPermissionsPlugin } from './enforce-strict-permissions-plugin';
|
|
13
13
|
|
|
14
14
|
const pubSub = new PubSub();
|
|
15
15
|
|
package/src/graphql/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export {
|
|
2
|
-
getPermissionsForOperation,
|
|
3
2
|
PermissionDefinition,
|
|
3
|
+
getPermissionsForOperation,
|
|
4
4
|
requiredPermissionsExists,
|
|
5
5
|
} from '@axinom/mosaic-id-utils';
|
|
6
6
|
export * from './common';
|
|
7
7
|
export * from './graphql';
|
|
8
|
-
export * from './graphql/enforce-strict-permissions
|
|
8
|
+
export * from './graphql/enforce-strict-permissions-plugin';
|
|
9
9
|
export * from './message-bus';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-strict-permissions.plugin.d.ts","sourceRoot":"","sources":["../../src/graphql/enforce-strict-permissions.plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQtC;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,MA+I5C,CAAC"}
|
/package/src/graphql/{enforce-strict-permissions.plugin.ts → enforce-strict-permissions-plugin.ts}
RENAMED
|
File without changes
|