@stanterprise/protobuf 0.0.13 → 0.0.14

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
@@ -1,2 +1,2 @@
1
- export * from "./lib";
1
+ export * from './lib';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,cAAc,OAAO,CAAC"}
package/dist/index.js CHANGED
@@ -3184,14 +3184,34 @@ var testsystem5;
3184
3184
  })(testsystem5 || (testsystem5 = {}));
3185
3185
 
3186
3186
  // lib/index.ts
3187
- var testsystem6 = Object.assign(
3188
- {},
3189
- testsystem,
3190
- testsystem2,
3191
- testsystem3,
3192
- testsystem4,
3193
- testsystem5
3194
- );
3187
+ function isPlainObject(value) {
3188
+ if (value === null || typeof value !== "object") {
3189
+ return false;
3190
+ }
3191
+ const proto = Object.getPrototypeOf(value);
3192
+ return proto === Object.prototype || proto === null;
3193
+ }
3194
+ function deepMerge(target, ...sources) {
3195
+ for (const source of sources) {
3196
+ for (const key of Object.keys(source)) {
3197
+ const sourceValue = source[key];
3198
+ if (isPlainObject(sourceValue)) {
3199
+ const targetValue = target[key];
3200
+ if (!isPlainObject(targetValue)) {
3201
+ target[key] = {};
3202
+ }
3203
+ deepMerge(
3204
+ target[key],
3205
+ sourceValue
3206
+ );
3207
+ } else {
3208
+ target[key] = sourceValue;
3209
+ }
3210
+ }
3211
+ }
3212
+ return target;
3213
+ }
3214
+ var testsystem6 = deepMerge({}, testsystem, testsystem2, testsystem3, testsystem4, testsystem5);
3195
3215
  // Annotate the CommonJS export names for ESM import in node:
3196
3216
  0 && (module.exports = {
3197
3217
  common,