@liveblocks/node 1.1.1-yjs1 → 1.1.1-yjs3
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/index.js +2 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ function buildLiveblocksAuthorizeEndpoint(options, roomId) {
|
|
|
84
84
|
|
|
85
85
|
// src/webhooks.ts
|
|
86
86
|
var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
|
|
87
|
-
var _WebhookHandler = class {
|
|
87
|
+
var _WebhookHandler = class _WebhookHandler {
|
|
88
88
|
constructor(secret) {
|
|
89
89
|
if (!secret)
|
|
90
90
|
throw new Error("Secret is required");
|
|
@@ -179,8 +179,8 @@ var _WebhookHandler = class {
|
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
+
_WebhookHandler.secretPrefix = "whsec_";
|
|
182
183
|
var WebhookHandler = _WebhookHandler;
|
|
183
|
-
WebhookHandler.secretPrefix = "whsec_";
|
|
184
184
|
var WEBHOOK_TOLERANCE_IN_SECONDS = 5 * 60;
|
|
185
185
|
var isNotUndefined = (value) => value !== void 0;
|
|
186
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/node",
|
|
3
|
-
"version": "1.1.1-
|
|
3
|
+
"version": "1.1.1-yjs3",
|
|
4
4
|
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"build": "tsup",
|
|
15
15
|
"format": "(eslint --fix src/ || true) && prettier --write src/",
|
|
16
16
|
"lint": "eslint src/",
|
|
17
|
+
"lint:package": "publint --strict && attw /tmp/$( npm pack -q --pack-destination /tmp )",
|
|
17
18
|
"test": "jest --silent --verbose --color=always",
|
|
18
19
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
19
20
|
},
|