@cocreate/organizations 1.31.2 → 1.31.3

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.
@@ -53,7 +53,7 @@
53
53
  object=""
54
54
  key="key"
55
55
  placeholder="API Key"
56
- uuid="32"
56
+ value="$uuid(32)"
57
57
  readonly />
58
58
 
59
59
  <button actions="createNewOrg, createUser">signup</button>
package/demo/index.html CHANGED
@@ -72,7 +72,7 @@
72
72
  object=""
73
73
  key="key"
74
74
  placeholder="API Key"
75
- uuid="32"
75
+ value="$uuid(32)"
76
76
  readonly />
77
77
 
78
78
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.31.2",
3
+ "version": "1.31.3",
4
4
  "description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "organizations",
@@ -69,7 +69,6 @@
69
69
  "@cocreate/render@1.46.1": true,
70
70
  "@cocreate/socket-client@1.40.5": true,
71
71
  "@cocreate/utils@1.42.2": true,
72
- "@cocreate/uuid@1.12.4": true,
73
72
  "@cocreate/webpack@1.4.3": true
74
73
  }
75
74
  }
package/src/client.js CHANGED
@@ -3,7 +3,7 @@ import Action from "@cocreate/actions";
3
3
  import Elements from "@cocreate/elements";
4
4
  import Config from "@cocreate/config";
5
5
  import Indexeddb from "@cocreate/indexeddb";
6
- import uuid from "@cocreate/uuid";
6
+ import { uuid } from "@cocreate/utils";
7
7
 
8
8
  async function generateDB(organization = {}, user = {}, key = []) {
9
9
  try {
@@ -20,7 +20,7 @@ async function generateDB(organization = {}, user = {}, key = []) {
20
20
  let defaultKey = {
21
21
  _id: Crud.ObjectId().toString(),
22
22
  type: "key",
23
- key: uuid.generate(),
23
+ key: uuid(),
24
24
  actions: {
25
25
  object: {
26
26
  "*": {
@@ -49,7 +49,7 @@ async function generateDB(organization = {}, user = {}, key = []) {
49
49
  let fileKey = {
50
50
  _id: Crud.ObjectId().toString(),
51
51
  type: "key",
52
- key: uuid.generate(),
52
+ key: uuid(),
53
53
  admin: "true"
54
54
  };
55
55
 
package/src/server.js CHANGED
@@ -23,9 +23,6 @@
23
23
 
24
24
  import server from '@cocreate/server';
25
25
 
26
- // ==========================================
27
- // Module-Level Sandbox State (ESM Singleton Container)
28
- // ==========================================
29
26
  const platformSocket = {
30
27
  config: {
31
28
  organization_id: process.env.organization_id