powr-sdk-api 4.5.3 → 4.5.5

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.
@@ -4,7 +4,9 @@ const {
4
4
  getDb
5
5
  } = require("../services/mongo");
6
6
  const crypto = require('crypto');
7
- const config = require('../config');
7
+ const {
8
+ config
9
+ } = require('../config');
8
10
  class FunctionsManager {
9
11
  constructor() {
10
12
  this.compiledFunctions = new Map();
@@ -4,7 +4,9 @@ const {
4
4
  getDb
5
5
  } = require("../services/mongo");
6
6
  const crypto = require('crypto');
7
- const config = require('../config');
7
+ const {
8
+ config
9
+ } = require('../config');
8
10
  class ToolsManager {
9
11
  constructor() {
10
12
  this.registeredTools = new Map();
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  const jwt = require('jsonwebtoken');
4
- const config = require('../config');
4
+ const {
5
+ config
6
+ } = require('../config');
5
7
  const generateJWTToken = (user, profile = null) => {
6
8
  return jwt.sign({
7
9
  userId: user._id,
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- const config = require('../config');
3
+ const {
4
+ config
5
+ } = require('../config');
4
6
 
5
7
  /**
6
8
  * Middleware to inject and validate projectId into requests
@@ -6,7 +6,9 @@
6
6
  const {
7
7
  MongoClient
8
8
  } = require('mongodb');
9
- const config = require('../config');
9
+ const {
10
+ config
11
+ } = require('../config');
10
12
  let client = null;
11
13
  let db = null;
12
14
  const connectDB = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-api",
3
- "version": "4.5.3",
3
+ "version": "4.5.5",
4
4
  "description": "Shared API core library for PowrStack projects. Zero dependencies - works with Express, Next.js API routes, and other frameworks. All features are optional and install only what you need.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",