@webiny/api-websockets 6.1.0-beta.3 → 6.2.0-beta.0

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.
@@ -1,4 +1,4 @@
1
- import { IdentityContext } from "@webiny/api-core/features/IdentityContext";
1
+ import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/index.js";
2
2
  import { NotAuthorizedError } from "@webiny/api-core/features/security/shared/index.js";
3
3
  /**
4
4
  * Simple permission check. Only full access can access the websockets API via GraphQL - ({name: "*"})
@@ -1 +1 @@
1
- {"version":3,"names":["IdentityContext","NotAuthorizedError","checkPermissions","context","identityContext","container","resolve","permissions","getPermissions","length"],"sources":["checkPermissions.ts"],"sourcesContent":["import { IdentityContext } from \"@webiny/api-core/features/IdentityContext\";\nimport { NotAuthorizedError } from \"@webiny/api-core/features/security/shared/index.js\";\nimport type { Context, WebsocketsPermission } from \"~/types.js\";\n\n/**\n * Simple permission check. Only full access can access the websockets API via GraphQL - ({name: \"*\"})\n *\n * @throws\n */\nexport const checkPermissions = async (context: Context): Promise<void> => {\n const identityContext = context.container.resolve(IdentityContext);\n const permissions = await identityContext.getPermissions<WebsocketsPermission>(\"websockets\");\n\n if (permissions.length === 0) {\n throw new NotAuthorizedError();\n }\n};\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,2CAA2C;AAC3E,SAASC,kBAAkB,QAAQ,oDAAoD;AAGvF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAOC,OAAgB,IAAoB;EACvE,MAAMC,eAAe,GAAGD,OAAO,CAACE,SAAS,CAACC,OAAO,CAACN,eAAe,CAAC;EAClE,MAAMO,WAAW,GAAG,MAAMH,eAAe,CAACI,cAAc,CAAuB,YAAY,CAAC;EAE5F,IAAID,WAAW,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,MAAM,IAAIR,kBAAkB,CAAC,CAAC;EAClC;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["IdentityContext","NotAuthorizedError","checkPermissions","context","identityContext","container","resolve","permissions","getPermissions","length"],"sources":["checkPermissions.ts"],"sourcesContent":["import { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport { NotAuthorizedError } from \"@webiny/api-core/features/security/shared/index.js\";\nimport type { Context, WebsocketsPermission } from \"~/types.js\";\n\n/**\n * Simple permission check. Only full access can access the websockets API via GraphQL - ({name: \"*\"})\n *\n * @throws\n */\nexport const checkPermissions = async (context: Context): Promise<void> => {\n const identityContext = context.container.resolve(IdentityContext);\n const permissions = await identityContext.getPermissions<WebsocketsPermission>(\"websockets\");\n\n if (permissions.length === 0) {\n throw new NotAuthorizedError();\n }\n};\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,6DAA6D;AAC7F,SAASC,kBAAkB,QAAQ,oDAAoD;AAGvF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAOC,OAAgB,IAAoB;EACvE,MAAMC,eAAe,GAAGD,OAAO,CAACE,SAAS,CAACC,OAAO,CAACN,eAAe,CAAC;EAClE,MAAMO,WAAW,GAAG,MAAMH,eAAe,CAACI,cAAc,CAAuB,YAAY,CAAC;EAE5F,IAAID,WAAW,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,MAAM,IAAIR,kBAAkB,CAAC,CAAC;EAClC;AACJ,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-websockets",
3
- "version": "6.1.0-beta.3",
3
+ "version": "6.2.0-beta.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,33 +17,33 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@webiny/api": "6.1.0-beta.3",
21
- "@webiny/api-core": "6.1.0-beta.3",
22
- "@webiny/aws-sdk": "6.1.0-beta.3",
23
- "@webiny/db-dynamodb": "6.1.0-beta.3",
24
- "@webiny/error": "6.1.0-beta.3",
25
- "@webiny/feature": "6.1.0-beta.3",
26
- "@webiny/handler": "6.1.0-beta.3",
27
- "@webiny/handler-aws": "6.1.0-beta.3",
28
- "@webiny/plugins": "6.1.0-beta.3",
29
- "@webiny/utils": "6.1.0-beta.3",
20
+ "@webiny/api": "6.2.0-beta.0",
21
+ "@webiny/api-core": "6.2.0-beta.0",
22
+ "@webiny/aws-sdk": "6.2.0-beta.0",
23
+ "@webiny/db-dynamodb": "6.2.0-beta.0",
24
+ "@webiny/error": "6.2.0-beta.0",
25
+ "@webiny/feature": "6.2.0-beta.0",
26
+ "@webiny/handler": "6.2.0-beta.0",
27
+ "@webiny/handler-aws": "6.2.0-beta.0",
28
+ "@webiny/plugins": "6.2.0-beta.0",
29
+ "@webiny/utils": "6.2.0-beta.0",
30
30
  "type-fest": "5.5.0",
31
31
  "zod": "4.3.6"
32
32
  },
33
33
  "devDependencies": {
34
- "@webiny/api-headless-cms": "6.1.0-beta.3",
35
- "@webiny/build-tools": "6.1.0-beta.3",
36
- "@webiny/handler-db": "6.1.0-beta.3",
37
- "@webiny/handler-graphql": "6.1.0-beta.3",
38
- "@webiny/project-utils": "6.1.0-beta.3",
34
+ "@webiny/api-headless-cms": "6.2.0-beta.0",
35
+ "@webiny/build-tools": "6.2.0-beta.0",
36
+ "@webiny/handler-db": "6.2.0-beta.0",
37
+ "@webiny/handler-graphql": "6.2.0-beta.0",
38
+ "@webiny/project-utils": "6.2.0-beta.0",
39
39
  "graphql": "16.13.2",
40
40
  "rimraf": "6.1.3",
41
41
  "typescript": "5.9.3",
42
- "vitest": "4.1.2"
42
+ "vitest": "4.1.4"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public",
46
46
  "directory": "dist"
47
47
  },
48
- "gitHead": "65e0ac1889b3392c99b8cac6cde508e1e831c715"
48
+ "gitHead": "3d3148358b6febbc857371930871743bec3b3939"
49
49
  }