@wix/sdk 1.17.8 → 1.18.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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ *
3
+ * TODO - implement this function
4
+ */
5
+ export declare function unflatten(target: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * TODO - implement this function
4
+ */
5
+ export function unflatten(target) {
6
+ return target;
7
+ }
package/build/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './auth/ApiKeyAuthStrategy.js';
6
6
  export * from './auth/AppStrategy.js';
7
7
  export * from '@wix/sdk-types';
8
8
  export { DEFAULT_API_URL } from './common.js';
9
+ export { createNanoEvents, type Emitter, type Unsubscribe, } from './nanoevents.js';
package/build/index.js CHANGED
@@ -6,3 +6,4 @@ export * from './auth/ApiKeyAuthStrategy.js';
6
6
  export * from './auth/AppStrategy.js';
7
7
  export * from '@wix/sdk-types';
8
8
  export { DEFAULT_API_URL } from './common.js';
9
+ export { createNanoEvents, } from './nanoevents.js';
@@ -1,5 +1,5 @@
1
- import { unflatten } from 'flat';
2
1
  import { RESTResponseToSDKResponseRenameMap } from '@wix/sdk-runtime/rest-modules';
2
+ import { unflatten } from './flat-utils.js';
3
3
  export class ModifiedFieldsManipulator {
4
4
  BRACKET_PATTERN = /\[(\d+)\]/g;
5
5
  NUMERIC_PATTERN = /^\d+$/;
@@ -0,0 +1,5 @@
1
+ /**
2
+ *
3
+ * TODO - implement this function
4
+ */
5
+ export declare function unflatten(target: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * TODO - implement this function
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.unflatten = unflatten;
8
+ function unflatten(target) {
9
+ return target;
10
+ }
@@ -6,3 +6,4 @@ export * from './auth/ApiKeyAuthStrategy.js';
6
6
  export * from './auth/AppStrategy.js';
7
7
  export * from '@wix/sdk-types';
8
8
  export { DEFAULT_API_URL } from './common.js';
9
+ export { createNanoEvents, type Emitter, type Unsubscribe, } from './nanoevents.js';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.DEFAULT_API_URL = void 0;
17
+ exports.createNanoEvents = exports.DEFAULT_API_URL = void 0;
18
18
  __exportStar(require("./wixClient.js"), exports);
19
19
  __exportStar(require("./wixMedia.js"), exports);
20
20
  __exportStar(require("./auth/oauth2/OAuthStrategy.js"), exports);
@@ -24,3 +24,5 @@ __exportStar(require("./auth/AppStrategy.js"), exports);
24
24
  __exportStar(require("@wix/sdk-types"), exports);
25
25
  var common_js_1 = require("./common.js");
26
26
  Object.defineProperty(exports, "DEFAULT_API_URL", { enumerable: true, get: function () { return common_js_1.DEFAULT_API_URL; } });
27
+ var nanoevents_js_1 = require("./nanoevents.js");
28
+ Object.defineProperty(exports, "createNanoEvents", { enumerable: true, get: function () { return nanoevents_js_1.createNanoEvents; } });
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModifiedFieldsManipulator = void 0;
4
4
  exports.attemptTransformationWithModifiedFields = attemptTransformationWithModifiedFields;
5
- const flat_1 = require("flat");
6
5
  const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ const flat_utils_js_1 = require("./flat-utils.js");
7
7
  class ModifiedFieldsManipulator {
8
8
  BRACKET_PATTERN = /\[(\d+)\]/g;
9
9
  NUMERIC_PATTERN = /^\d+$/;
@@ -37,7 +37,7 @@ class ModifiedFieldsManipulator {
37
37
  this.replaceEscapedCharacters(this.bracketToDotNotation(key)),
38
38
  value,
39
39
  ]));
40
- return (0, flat_1.unflatten)(this.cleanedModifiedFields);
40
+ return (0, flat_utils_js_1.unflatten)(this.cleanedModifiedFields);
41
41
  }
42
42
  flatten(transformedModifiedFields) {
43
43
  let result = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.17.8",
3
+ "version": "1.18.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -78,7 +78,6 @@
78
78
  "@wix/sdk-context": "0.0.1",
79
79
  "@wix/sdk-runtime": "1.0.1",
80
80
  "@wix/sdk-types": "1.16.0",
81
- "flat": "^6.0.1",
82
81
  "jose": "^5.10.0",
83
82
  "type-fest": "^4.41.0"
84
83
  },
@@ -127,5 +126,5 @@
127
126
  "wallaby": {
128
127
  "autoDetect": true
129
128
  },
130
- "falconPackageHash": "8f72ec0c97a8f13bb386ccbcdd22c84f78406fd9003327275a467015"
129
+ "falconPackageHash": "9f9ca558f5ddeb01547721b9d9dfe27c55c3e0eb2a549d932ec2f1bb"
131
130
  }