@wix/sdk 1.17.8 → 1.17.9

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
+ }
@@ -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
+ }
@@ -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.17.9",
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": "4d056ebe7a6d4e37777504dff4376355ffb98bb9d968c7c69bfe19f2"
131
130
  }