@friggframework/devtools 1.0.1-v1-alpha-package-update.0 → 1.0.1-v1-alpha.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/migrations/migrator.js +1 -3
- package/migrations/options.js +1 -2
- package/package.json +3 -2
- package/test-environment/Authenticator.js +3 -2
- package/test-environment/auther-definition-method-tester.js +1 -1
- package/test-environment/auther-definition-tester.js +6 -2
- package/test-environment/mock-integration.js +2 -3
package/migrations/migrator.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const { Delegate } = require('
|
|
2
|
-
const { Integration } = require('../../core/integrations');
|
|
3
|
-
const { get } = require('../../core/assertions');
|
|
1
|
+
const { Delegate, Integration, get } = require('@friggframework/core');
|
|
4
2
|
|
|
5
3
|
class Migrator extends Delegate {
|
|
6
4
|
constructor(params) {
|
package/migrations/options.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "1.0.1-v1-alpha
|
|
4
|
+
"version": "1.0.1-v1-alpha.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/eslint-parser": "^7.18.9",
|
|
7
|
+
"@friggframework/core": "1.0.1-v1-alpha.0",
|
|
7
8
|
"eslint": "^8.22.0",
|
|
8
9
|
"eslint-config-prettier": "^8.5.0",
|
|
9
10
|
"eslint-plugin-json": "^3.1.0",
|
|
@@ -36,5 +37,5 @@
|
|
|
36
37
|
"publishConfig": {
|
|
37
38
|
"access": "public"
|
|
38
39
|
},
|
|
39
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "31dd6aab556a2fe9e930fa89630dee46925289af"
|
|
40
41
|
}
|
|
@@ -14,7 +14,7 @@ class Authenticator {
|
|
|
14
14
|
return result;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
static async oauth2(authorizeUrl, port = 3000) {
|
|
17
|
+
static async oauth2(authorizeUrl, port = 3000, browserName = undefined) {
|
|
18
18
|
return new Promise((resolve, reject) => {
|
|
19
19
|
const server = http
|
|
20
20
|
.createServer(async (req, res) => {
|
|
@@ -49,8 +49,9 @@ class Authenticator {
|
|
|
49
49
|
}
|
|
50
50
|
})
|
|
51
51
|
.listen(port, () => {
|
|
52
|
+
const options = browserName ? {app: {name: browserName }} : undefined
|
|
52
53
|
// open the browser to the authorize url to start the workflow
|
|
53
|
-
open(authorizeUrl).then((childProcess) => {
|
|
54
|
+
open(authorizeUrl, options).then((childProcess) => {
|
|
54
55
|
childProcess.unref();
|
|
55
56
|
clearTimeout(timeoutId);
|
|
56
57
|
});
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
const {Auther,
|
|
2
|
-
|
|
1
|
+
const {Auther,
|
|
2
|
+
ModuleConstants,
|
|
3
|
+
createObjectId,
|
|
4
|
+
connectToDatabase,
|
|
5
|
+
disconnectFromDatabase,
|
|
6
|
+
} = require('@friggframework/core');
|
|
3
7
|
const { createMockApiObject } = require("./mock-integration");
|
|
4
8
|
|
|
5
9
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const { Auther, Credential, Entity } = require('
|
|
2
|
-
|
|
3
|
-
const { mongoose } = require('../../core/database/mongoose');
|
|
1
|
+
const { Auther, Credential, Entity, IntegrationModel, mongoose } = require('@friggframework/core');
|
|
2
|
+
|
|
4
3
|
|
|
5
4
|
async function createMockIntegration(IntegrationClassDef, userId = null, config = {},) {
|
|
6
5
|
const integration = new IntegrationClassDef();
|