@mindline/sync 1.0.91 → 1.0.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindline/sync",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "sync is a node.js package encapsulating JavaScript classes required for configuring Mindline sync service.",
5
5
  "main": "dist/sync.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,10 +25,12 @@
25
25
  "vite-plugin-dts": "^4.5.3"
26
26
  },
27
27
  "dependencies": {
28
+ "reflect-metadata": "^0.2.2"
29
+ },
30
+ "peerDependencies": {
28
31
  "@microsoft/signalr": "^8.0.7",
29
32
  "class-transformer": "^0.5.1",
30
33
  "react": "^18.2.0",
31
- "react-dom": "^18.2.0",
32
- "reflect-metadata": "^0.2.2"
34
+ "react-dom": "^18.2.0"
33
35
  }
34
36
  }
package/src/index.ts CHANGED
@@ -318,7 +318,7 @@ function storageAvailable() {
318
318
  }
319
319
  }
320
320
  export class InitInfo {
321
- version: string = "";
321
+ version: string = version;
322
322
  tab: number = 0;
323
323
  us: User[] = [];
324
324
  ts: Tenant[] = [];
@@ -420,7 +420,7 @@ export class InitInfo {
420
420
  }
421
421
  #initFromObjects(ii: InitInfo): void {
422
422
  this.tab = ii.tab;
423
- this.version = version;
423
+ //this.version = version; ALWAYS READ VERSION FROM PACKAGE!!
424
424
  this.configlevelconsent_configid = ii.configlevelconsent_configid;
425
425
  this.configlevelconsent_access = ii.configlevelconsent_access;
426
426
  if (typeof ii.us === "undefined") {
package/vite.config.ts CHANGED
@@ -10,16 +10,16 @@ export default defineConfig({
10
10
  fileName: (format) => `sync.${format}.js`
11
11
  },
12
12
  sourcemap: true,
13
+ emptyOutDir: true,
13
14
  rollupOptions: {
14
- external: ['react', 'react-dom'],
15
- output: {
16
- globals: {
17
- react: 'React',
18
- 'react-dom': 'ReactDOM'
19
- }
20
- }
21
- },
22
- emptyOutDir: true
15
+ // these must be peerDependencies
16
+ external: [
17
+ '@microsoft/signalr',
18
+ 'class-transformer',
19
+ 'react',
20
+ 'react-dom'
21
+ ]
22
+ }
23
23
  },
24
24
  plugins: [
25
25
  react(),