@memberjunction/data-context-server 2.112.0 → 2.113.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { UserInfo } from '@memberjunction/global';
2
- import { DataContextItem } from '@memberjunction/data-context';
1
+ import { UserInfo } from "@memberjunction/core";
2
+ import { DataContextItem } from "@memberjunction/data-context";
3
3
  export declare class DataContextItemServer extends DataContextItem {
4
4
  /**
5
5
  * Server-Side only method to load the data context item from a SQL statement
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,qBACa,qBAAsB,SAAQ,eAAe;IACxD;;;;OAIG;cACsB,WAAW,CAAC,UAAU,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CAahG;AAED;;GAEG;AACH,wBAAgB,0BAA0B,SAGzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,qBACa,qBAAsB,SAAQ,eAAe;IACtD;;;;OAIG;cACsB,WAAW,CAAC,UAAU,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CAclG;AAED;;GAEG;AACH,wBAAgB,0BAA0B,SAGzC"}
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.LoadDataContextItemsServer = exports.DataContextItemServer = void 0;
33
33
  const global_1 = require("@memberjunction/global");
34
- const global_2 = require("@memberjunction/global");
34
+ const core_1 = require("@memberjunction/core");
35
35
  const data_context_1 = require("@memberjunction/data-context");
36
36
  const sql = __importStar(require("mssql"));
37
37
  let DataContextItemServer = class DataContextItemServer extends data_context_1.DataContextItem {
@@ -50,7 +50,7 @@ let DataContextItemServer = class DataContextItemServer extends data_context_1.D
50
50
  }
51
51
  catch (e) {
52
52
  this.DataLoadingError = `Error loading data context item from SQL: ${e && e.message ? e.message : e}`;
53
- (0, global_2.LogError)(this.DataLoadingError);
53
+ (0, core_1.LogError)(this.DataLoadingError);
54
54
  return false;
55
55
  }
56
56
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAuD;AACvD,mDAA4D;AAC5D,+DAA+D;AAC/D,2CAA6B;AAGtB,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,8BAAe;IACxD;;;;OAIG;IACgB,KAAK,CAAC,WAAW,CAAC,UAAe,EAAE,WAAsB;QAC1E,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,UAAgC,CAAC;YAC9C,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC;YAC7B,OAAO,IAAI,CAAC,CAAC,mGAAmG;QAClH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,gBAAgB,GAAG,6CAA6C,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACtG,IAA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ArB,qBAAqB;IADjC,IAAA,sBAAa,EAAC,8BAAe,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC;GAC9C,qBAAqB,CAoBjC;AAED;;GAEG;AACH,SAAgB,0BAA0B;IACtC,4JAA4J;IAC5J,8EAA8E;AAClF,CAAC;AAHD,gEAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/data-context-server",
3
- "version": "2.112.0",
3
+ "version": "2.113.0",
4
4
  "description": "This library provides a server-side implementation of the DataContextItem class from @memberjunction/data-context that can handle the server-side only use case of loading data into a context using raw SQL statements.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "typescript": "^5.4.5"
20
20
  },
21
21
  "dependencies": {
22
- "@memberjunction/data-context": "2.112.0",
23
- "@memberjunction/global": "2.112.0",
22
+ "@memberjunction/data-context": "2.113.0",
23
+ "@memberjunction/global": "2.113.0",
24
24
  "mssql": "^11.0.1"
25
25
  },
26
26
  "repository": {
package/readme.md CHANGED
@@ -39,7 +39,7 @@ LoadDataContextItemsServer();
39
39
  ```typescript
40
40
  import { DataContext } from '@memberjunction/data-context';
41
41
  import { DataSource } from 'typeorm';
42
- import { UserInfo } from '@memberjunction/global';
42
+ import { UserInfo } from '@memberjunction/core';
43
43
 
44
44
  // Assume you have a TypeORM DataSource configured
45
45
  const dataSource: DataSource = /* your configured data source */;
@@ -176,7 +176,7 @@ The package uses a standard TypeScript configuration that compiles to ES modules
176
176
  import { DataContext } from '@memberjunction/data-context';
177
177
  import { LoadDataContextItemsServer } from '@memberjunction/data-context-server';
178
178
  import { createConnection, DataSource } from 'typeorm';
179
- import { Metadata } from '@memberjunction/global';
179
+ import { Metadata } from '@memberjunction/core';
180
180
 
181
181
  // Initialize the server-side data context support
182
182
  LoadDataContextItemsServer();
@@ -230,4 +230,4 @@ async function loadDataContextWithSQL() {
230
230
 
231
231
  ## License
232
232
 
233
- This package is part of the MemberJunction framework and follows the same licensing terms.
233
+ This package is part of the MemberJunction framework and follows the same licensing terms.