@nlabs/reaktor 0.5.4 → 0.6.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.
- package/README.md +7 -7
- package/lib/actions/conversations.js +36 -47
- package/lib/actions/dynamodb.js +22 -33
- package/lib/actions/email.js +32 -29
- package/lib/actions/files.js +45 -53
- package/lib/actions/groups.js +33 -28
- package/lib/actions/images.js +53 -63
- package/lib/actions/index.js +54 -37
- package/lib/actions/ios.js +21 -40
- package/lib/actions/locations.js +25 -22
- package/lib/actions/messages.js +28 -41
- package/lib/actions/notifications.d.ts +1 -1
- package/lib/actions/notifications.js +13 -20
- package/lib/actions/payments.js +37 -48
- package/lib/actions/posts.js +19 -42
- package/lib/actions/reactions.d.ts +1 -1
- package/lib/actions/reactions.js +17 -40
- package/lib/actions/s3.js +21 -18
- package/lib/actions/search.js +26 -40
- package/lib/actions/sms.js +24 -21
- package/lib/actions/statistics.js +14 -21
- package/lib/actions/subscription.js +27 -24
- package/lib/actions/tags.js +47 -54
- package/lib/actions/users.js +81 -94
- package/lib/actions/websockets.js +26 -39
- package/lib/config.js +21 -18
- package/lib/index.js +24 -22
- package/lib/lambdas/actions/websockets.js +27 -40
- package/lib/lambdas/authorizer.js +21 -18
- package/lib/lambdas/connection.js +26 -40
- package/lib/lambdas/utils/message.js +20 -17
- package/lib/lambdas/utils/websocket.js +33 -25
- package/lib/templates/email/layout.js +16 -9
- package/lib/templates/email/passwordForgot.js +16 -9
- package/lib/templates/email/passwordRecovery.js +16 -9
- package/lib/templates/email/verifyEmail.js +16 -9
- package/lib/templates/email/welcome.js +16 -9
- package/lib/templates/sms/passwordForgot.js +16 -9
- package/lib/templates/sms/passwordRecovery.js +16 -9
- package/lib/templates/sms/verifyEmail.js +16 -9
- package/lib/templates/sms/verifyPhone.js +16 -9
- package/lib/templates/sms/welcome.js +16 -9
- package/lib/types/apps.d.ts +1 -1
- package/lib/types/apps.js +14 -5
- package/lib/types/arangodb.js +14 -5
- package/lib/types/auth.js +14 -5
- package/lib/types/connections.js +14 -5
- package/lib/types/conversations.js +14 -5
- package/lib/types/email.js +14 -5
- package/lib/types/files.js +14 -5
- package/lib/types/google.js +14 -5
- package/lib/types/groups.js +14 -5
- package/lib/types/images.js +14 -5
- package/lib/types/index.js +50 -35
- package/lib/types/locations.js +14 -5
- package/lib/types/messages.js +14 -5
- package/lib/types/notifications.js +14 -5
- package/lib/types/payments.d.ts +1 -1
- package/lib/types/payments.js +14 -5
- package/lib/types/posts.js +14 -5
- package/lib/types/statistics.js +14 -5
- package/lib/types/tags.js +14 -5
- package/lib/types/users.js +14 -5
- package/lib/types/websocket.js +14 -5
- package/lib/utils/analytics.js +24 -44
- package/lib/utils/arangodb.js +14 -21
- package/lib/utils/auth.js +22 -36
- package/lib/utils/graphql.js +20 -17
- package/lib/utils/index.js +26 -23
- package/lib/utils/objects.js +22 -19
- package/lib/utils/session.js +20 -17
- package/package.json +30 -32
- package/.eslintrc +0 -18
package/lib/utils/session.js
CHANGED
|
@@ -4,31 +4,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
9
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
10
|
-
};
|
|
11
7
|
var __export = (target, all) => {
|
|
12
|
-
__markAsModule(target);
|
|
13
8
|
for (var name in all)
|
|
14
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
10
|
};
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
18
|
-
for (let key of __getOwnPropNames(
|
|
19
|
-
if (!__hasOwnProp.call(
|
|
20
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
16
|
}
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
var __toModule = (module2) => {
|
|
25
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
17
|
+
return to;
|
|
26
18
|
};
|
|
27
|
-
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var session_exports = {};
|
|
29
|
+
__export(session_exports, {
|
|
28
30
|
getSession: () => getSession,
|
|
29
31
|
setSession: () => setSession
|
|
30
32
|
});
|
|
31
|
-
|
|
33
|
+
module.exports = __toCommonJS(session_exports);
|
|
34
|
+
var import_jsonwebtoken = __toESM(require("jsonwebtoken"));
|
|
32
35
|
const setSession = (session) => import_jsonwebtoken.default.sign(session, process.env.SESSION_SECRET);
|
|
33
36
|
const getSession = (token) => {
|
|
34
37
|
try {
|
|
@@ -42,4 +45,4 @@ const getSession = (token) => {
|
|
|
42
45
|
getSession,
|
|
43
46
|
setSession
|
|
44
47
|
});
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3V0aWxzL3Nlc3Npb24udHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCBqd3QgZnJvbSAnanNvbndlYnRva2VuJztcblxuZXhwb3J0IGludGVyZmFjZSBTZXNzaW9uIHtcbiAgcmVhZG9ubHkgZXJyb3JzPzogc3RyaW5nW107XG4gIHJlYWRvbmx5IGV4cD86IG51bWJlcjtcbiAgcmVhZG9ubHkgaWF0PzogbnVtYmVyO1xuICByZWFkb25seSB1c2VybmFtZTogc3RyaW5nO1xuICByZWFkb25seSB1c2VyQWNjZXNzOiBudW1iZXI7XG4gIHJlYWRvbmx5IHVzZXJJZDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNlc3Npb25Ub2tlbiB7XG4gIHJlYWRvbmx5IGV4cGlyZXM6IG51bWJlcjtcbiAgcmVhZG9ubHkgaXNzdWVkOiBudW1iZXI7XG4gIHJlYWRvbmx5IHRva2VuOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2Vzc2lvbkVycm9yIHtcbiAgcmVhZG9ubHkgZXJyb3JzPzogc3RyaW5nW107XG59XG5cbmV4cG9ydCBjb25zdCBzZXRTZXNzaW9uID0gKHNlc3Npb246IFNlc3Npb24pOiBzdHJpbmcgPT4gand0LnNpZ24oc2Vzc2lvbiwgcHJvY2Vzcy5lbnYuU0VTU0lPTl9TRUNSRVQpO1xuXG5leHBvcnQgY29uc3QgZ2V0U2Vzc2lvbiA9ICh0b2tlbjogc3RyaW5nKSA9PiB7XG4gIHRyeSB7XG4gICAgcmV0dXJuIGp3dC52ZXJpZnkodG9rZW4sIHByb2Nlc3MuZW52LlNFU1NJT05fU0VDUkVUKTtcbiAgfSBjYXRjaChlcnJvcikge1xuICAgIHJldHVybiB7ZXJyb3JzOiBbZXJyb3IubWVzc2FnZV19O1xuICB9XG59O1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsMEJBQWdCO0FBcUJULE1BQU0sYUFBYSxDQUFDLFlBQTZCLG9CQUFBQSxRQUFJLEtBQUssU0FBUyxRQUFRLElBQUksY0FBYztBQUU3RixNQUFNLGFBQWEsQ0FBQyxVQUFrQjtBQUMzQyxNQUFJO0FBQ0YsV0FBTyxvQkFBQUEsUUFBSSxPQUFPLE9BQU8sUUFBUSxJQUFJLGNBQWM7QUFBQSxFQUNyRCxTQUFRLE9BQU87QUFDYixXQUFPLEVBQUMsUUFBUSxDQUFDLE1BQU0sT0FBTyxFQUFDO0FBQUEsRUFDakM7QUFDRjsiLAogICJuYW1lcyI6IFsiand0Il0KfQo=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlabs/reaktor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Reaktor",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://github.com/nitrogenlabs/reaktor-api/issues"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "lex compile
|
|
29
|
+
"build": "lex compile --remove",
|
|
30
30
|
"clean": "lex clean",
|
|
31
31
|
"lint": "eslint ./src --ext .ts,.tsx",
|
|
32
32
|
"prepublishOnly": "npm run build",
|
|
@@ -36,51 +36,49 @@
|
|
|
36
36
|
"publish:patch": "npm version patch && npm run publish:tags && npm publish",
|
|
37
37
|
"publish:tags": "git push --tags && git push origin HEAD",
|
|
38
38
|
"test": "stage=test jest",
|
|
39
|
-
"update": "lex update
|
|
40
|
-
"watch": "lex compile
|
|
39
|
+
"update": "lex update --interactive",
|
|
40
|
+
"watch": "lex compile --remove --watch"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@nlabs/arkhamjs": "^3.
|
|
44
|
-
"@nlabs/rip-hunter": "^2.
|
|
45
|
-
"@nlabs/utils": "^1.4.
|
|
46
|
-
"apn": "^2.
|
|
47
|
-
"arangojs": "^
|
|
48
|
-
"aws-sdk": "^2.
|
|
43
|
+
"@nlabs/arkhamjs": "^3.26.2",
|
|
44
|
+
"@nlabs/rip-hunter": "^2.6.4",
|
|
45
|
+
"@nlabs/utils": "^1.4.4",
|
|
46
|
+
"apn": "^2.0.0",
|
|
47
|
+
"arangojs": "^8.6.0",
|
|
48
|
+
"aws-sdk": "^2.1546.0",
|
|
49
49
|
"child_process": "^1.0.2",
|
|
50
|
-
"core-js": "^3.
|
|
51
|
-
"file-type": "^
|
|
52
|
-
"gm": "^1.
|
|
53
|
-
"google-libphonenumber": "^3.2.
|
|
54
|
-
"googleapis": "^
|
|
55
|
-
"graphql": "^
|
|
50
|
+
"core-js": "^3.35.1",
|
|
51
|
+
"file-type": "^19.0.0",
|
|
52
|
+
"gm": "^1.25.0",
|
|
53
|
+
"google-libphonenumber": "^3.2.34",
|
|
54
|
+
"googleapis": "^131.0.0",
|
|
55
|
+
"graphql": "^16.8.1",
|
|
56
56
|
"graphql-fields": "^2.0.3",
|
|
57
|
-
"jsonwebtoken": "^
|
|
57
|
+
"jsonwebtoken": "^9.0.2",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
|
-
"luxon": "^
|
|
60
|
-
"mime-types": "^2.1.
|
|
59
|
+
"luxon": "^3.4.4",
|
|
60
|
+
"mime-types": "^2.1.35",
|
|
61
61
|
"net": "^1.0.2",
|
|
62
|
-
"node-yelp": "^0.0.
|
|
62
|
+
"node-yelp": "^0.0.3",
|
|
63
63
|
"numeral": "^2.0.6",
|
|
64
|
-
"sanitize-html": "^2.
|
|
64
|
+
"sanitize-html": "^2.11.0",
|
|
65
65
|
"spawn-sync": "^2.0.0",
|
|
66
|
-
"stripe": "^
|
|
66
|
+
"stripe": "^14.14.0",
|
|
67
67
|
"tls": "0.0.1",
|
|
68
68
|
"to": "^0.2.9",
|
|
69
|
-
"twilio": "^3.67.2",
|
|
70
69
|
"typed-promisify": "^0.4.0",
|
|
71
|
-
"universal-analytics": "^0.
|
|
72
|
-
"update": "^0.7.4"
|
|
70
|
+
"universal-analytics": "^0.5.3"
|
|
73
71
|
},
|
|
74
72
|
"devDependencies": {
|
|
75
|
-
"@types/history": "^4.7.
|
|
76
|
-
"@types/jest": "^
|
|
77
|
-
"@types/luxon": "^
|
|
78
|
-
"@types/node": "^
|
|
73
|
+
"@types/history": "^4.7.11",
|
|
74
|
+
"@types/jest": "^29.5.11",
|
|
75
|
+
"@types/luxon": "^3.4.2",
|
|
76
|
+
"@types/node": "^20.11.10",
|
|
79
77
|
"@types/stripe": "^8.0.416",
|
|
80
78
|
"@types/twilio": "^3.19.2",
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-config-styleguidejs": "^
|
|
79
|
+
"eslint": "^8.56.0",
|
|
80
|
+
"eslint-config-styleguidejs": "^3.2.1",
|
|
83
81
|
"graphql-tools": "^8.2.0",
|
|
84
|
-
"typescript": "^
|
|
82
|
+
"typescript": "^5.3.3"
|
|
85
83
|
}
|
|
86
84
|
}
|
package/.eslintrc
DELETED