@uniformdev/project-map 18.38.1-alpha.10 → 19.0.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
@@ -394,7 +394,7 @@ interface components {
394
394
  * @description The id of the projectMap entry
395
395
  */
396
396
  id?: string;
397
- /** @description Dot delimited path representing the path to the current node */
397
+ /** @description Path representing the path to the current node */
398
398
  path: string;
399
399
  /** @description Ordering of the node, higher numbers go after lower numbers. */
400
400
  order?: number;
@@ -553,7 +553,6 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
553
553
  getNodes: (options: WithoutProjectId<ProjectMapNodeGetRequest>) => Promise<ProjectMapNodeGetResponse>;
554
554
  private setFetchOptions;
555
555
  private cleanProjectMapNode;
556
- private validatePath;
557
556
  }
558
557
  declare class UncachedProjectMapClient extends ProjectMapClient {
559
558
  constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
package/dist/index.esm.js CHANGED
@@ -56,7 +56,7 @@ var ProjectMapClient = class extends ApiClient {
56
56
  this.deleteProjectMapNode = async (options) => {
57
57
  const { projectId } = this.options;
58
58
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
59
- if (!options.path || this.validatePath(options.path)) {
59
+ if (!options.path) {
60
60
  await this.apiClient(fetchUri, {
61
61
  method: "DELETE",
62
62
  body: JSON.stringify({
@@ -114,7 +114,7 @@ var ProjectMapClient = class extends ApiClient {
114
114
  fetchOptions["search"] = options.search;
115
115
  } else if (options.id) {
116
116
  fetchOptions["id"] = options.id;
117
- } else if (options.path && this.validatePath(options.path)) {
117
+ } else if (options.path) {
118
118
  fetchOptions["path"] = options.path;
119
119
  } else if (options.compositionId) {
120
120
  fetchOptions["compositionId"] = options.compositionId;
@@ -149,14 +149,6 @@ var ProjectMapClient = class extends ApiClient {
149
149
  description: node.description
150
150
  };
151
151
  }
152
- validatePath(path) {
153
- const regex = /[*%!&@]/g;
154
- const match = path == null ? void 0 : path.match(regex);
155
- if (match) {
156
- throw "Path cannot contain reserved characters * % ! & @";
157
- }
158
- return true;
159
- }
160
152
  };
161
153
  var UncachedProjectMapClient = class extends ProjectMapClient {
162
154
  constructor(options) {
package/dist/index.js CHANGED
@@ -84,7 +84,7 @@ var ProjectMapClient = class extends import_api.ApiClient {
84
84
  this.deleteProjectMapNode = async (options) => {
85
85
  const { projectId } = this.options;
86
86
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
87
- if (!options.path || this.validatePath(options.path)) {
87
+ if (!options.path) {
88
88
  await this.apiClient(fetchUri, {
89
89
  method: "DELETE",
90
90
  body: JSON.stringify({
@@ -142,7 +142,7 @@ var ProjectMapClient = class extends import_api.ApiClient {
142
142
  fetchOptions["search"] = options.search;
143
143
  } else if (options.id) {
144
144
  fetchOptions["id"] = options.id;
145
- } else if (options.path && this.validatePath(options.path)) {
145
+ } else if (options.path) {
146
146
  fetchOptions["path"] = options.path;
147
147
  } else if (options.compositionId) {
148
148
  fetchOptions["compositionId"] = options.compositionId;
@@ -177,14 +177,6 @@ var ProjectMapClient = class extends import_api.ApiClient {
177
177
  description: node.description
178
178
  };
179
179
  }
180
- validatePath(path) {
181
- const regex = /[*%!&@]/g;
182
- const match = path == null ? void 0 : path.match(regex);
183
- if (match) {
184
- throw "Path cannot contain reserved characters * % ! & @";
185
- }
186
- return true;
187
- }
188
180
  };
189
181
  var UncachedProjectMapClient = class extends ProjectMapClient {
190
182
  constructor(options) {
package/dist/index.mjs CHANGED
@@ -56,7 +56,7 @@ var ProjectMapClient = class extends ApiClient {
56
56
  this.deleteProjectMapNode = async (options) => {
57
57
  const { projectId } = this.options;
58
58
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
59
- if (!options.path || this.validatePath(options.path)) {
59
+ if (!options.path) {
60
60
  await this.apiClient(fetchUri, {
61
61
  method: "DELETE",
62
62
  body: JSON.stringify({
@@ -114,7 +114,7 @@ var ProjectMapClient = class extends ApiClient {
114
114
  fetchOptions["search"] = options.search;
115
115
  } else if (options.id) {
116
116
  fetchOptions["id"] = options.id;
117
- } else if (options.path && this.validatePath(options.path)) {
117
+ } else if (options.path) {
118
118
  fetchOptions["path"] = options.path;
119
119
  } else if (options.compositionId) {
120
120
  fetchOptions["compositionId"] = options.compositionId;
@@ -149,14 +149,6 @@ var ProjectMapClient = class extends ApiClient {
149
149
  description: node.description
150
150
  };
151
151
  }
152
- validatePath(path) {
153
- const regex = /[*%!&@]/g;
154
- const match = path == null ? void 0 : path.match(regex);
155
- if (match) {
156
- throw "Path cannot contain reserved characters * % ! & @";
157
- }
158
- return true;
159
- }
160
152
  };
161
153
  var UncachedProjectMapClient = class extends ProjectMapClient {
162
154
  constructor(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "18.38.1-alpha.10+13f006c1d",
3
+ "version": "19.0.0",
4
4
  "description": "Uniform Project Map",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -32,11 +32,11 @@
32
32
  "/dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@uniformdev/canvas": "18.38.1-alpha.10+13f006c1d",
36
- "@uniformdev/context": "18.38.1-alpha.10+13f006c1d"
35
+ "@uniformdev/canvas": "19.0.0",
36
+ "@uniformdev/context": "19.0.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "13f006c1d5ebbe593d33f3446a8de84b4a2d42d1"
41
+ "gitHead": "e104985924b24a8de1d8dcfcca6c9167611adf85"
42
42
  }