@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.
@@ -1,6 +1,4 @@
1
- const { Delegate } = require('../../core/core');
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) {
@@ -1,5 +1,4 @@
1
- const IntegrationManager = require('../../core/integrations');
2
- const { get, getAndVerifyType } = require('../../core/assertions');
1
+ const { IntegrationManager, get, getAndVerifyType } = require('@friggframework/core');
3
2
 
4
3
  class Options {
5
4
  constructor(params) {
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-package-update.0",
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": "2f565b1c08c09828c97f07c351a40ae6e4480186"
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,4 +1,4 @@
1
- const {flushDebugLog} = require('../../core/logs');
1
+ const {flushDebugLog} = require('@friggframework/core');
2
2
 
3
3
  async function testDefinitionRequiredAuthMethods(api, definition, authCallbackParams, tokenResponse, userId) {
4
4
 
@@ -1,5 +1,9 @@
1
- const {Auther, ModuleConstants} = require('../../core/module-plugin');
2
- const { createObjectId, connectToDatabase, disconnectFromDatabase } = require('../../core/database/mongo');
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('../../core/module-plugin');
2
- const { IntegrationModel } = require('../../core/integrations');
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();