@jsenv/core 39.5.0 → 39.5.2

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.
Files changed (2) hide show
  1. package/dist/jsenv_core.js +10 -4
  2. package/package.json +11 -11
@@ -2915,13 +2915,19 @@ const applyAssociations = ({ url, associations }) => {
2915
2915
  };
2916
2916
 
2917
2917
  const deepAssign = (firstValue, secondValue) => {
2918
- if (!isPlainObject(firstValue) || !isPlainObject(secondValue)) {
2918
+ if (!isPlainObject(firstValue)) {
2919
+ if (isPlainObject(secondValue)) {
2920
+ return deepAssign({}, secondValue);
2921
+ }
2922
+ return secondValue;
2923
+ }
2924
+ if (!isPlainObject(secondValue)) {
2919
2925
  return secondValue;
2920
2926
  }
2921
2927
  for (const key of Object.keys(secondValue)) {
2922
- const leftValue = firstValue[key];
2923
- const rightValue = secondValue[key];
2924
- firstValue[key] = deepAssign(leftValue, rightValue);
2928
+ const leftPopertyValue = firstValue[key];
2929
+ const rightPropertyValue = secondValue[key];
2930
+ firstValue[key] = deepAssign(leftPopertyValue, rightPropertyValue);
2925
2931
  }
2926
2932
  return firstValue;
2927
2933
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.5.0",
3
+ "version": "39.5.2",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -47,7 +47,7 @@
47
47
  "eslint": "npx eslint .",
48
48
  "test": "node --conditions=development ./scripts/test/test.mjs",
49
49
  "build": "node --conditions=development ./scripts/build/build.mjs",
50
- "workspace:test": "npm run test --workspaces --if-present -- --workspace",
50
+ "packages:test": "npm run test -- ./packages/",
51
51
  "workspace:build": "npm run build --workspaces --if-present --conditions=developement",
52
52
  "monorepo:sync_packages_versions": "node ./scripts/monorepo/sync_packages_versions.mjs",
53
53
  "monorepo:publish": "node ./scripts/monorepo/publish_packages.mjs",
@@ -70,20 +70,20 @@
70
70
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
71
71
  "@jsenv/abort": "4.3.0",
72
72
  "@jsenv/ast": "6.2.17",
73
- "@jsenv/filesystem": "4.10.2",
73
+ "@jsenv/filesystem": "4.10.3",
74
74
  "@jsenv/humanize": "1.2.8",
75
75
  "@jsenv/importmap": "1.2.1",
76
76
  "@jsenv/integrity": "0.0.2",
77
77
  "@jsenv/js-module-fallback": "1.3.38",
78
78
  "@jsenv/node-esm-resolution": "1.0.6",
79
- "@jsenv/plugin-bundling": "2.7.7",
80
- "@jsenv/plugin-minification": "1.5.5",
79
+ "@jsenv/plugin-bundling": "2.7.9",
80
+ "@jsenv/plugin-minification": "1.5.6",
81
81
  "@jsenv/plugin-supervisor": "1.5.19",
82
82
  "@jsenv/plugin-transpilation": "1.4.22",
83
83
  "@jsenv/runtime-compat": "1.3.1",
84
- "@jsenv/server": "15.3.0",
84
+ "@jsenv/server": "15.3.1",
85
85
  "@jsenv/sourcemap": "1.2.23",
86
- "@jsenv/url-meta": "8.5.1",
86
+ "@jsenv/url-meta": "8.5.2",
87
87
  "@jsenv/urls": "2.5.2",
88
88
  "@jsenv/utils": "2.1.2",
89
89
  "string-width": "7.2.0",
@@ -104,14 +104,14 @@
104
104
  "@jsenv/plugin-as-js-classic": "workspace:*",
105
105
  "@jsenv/snapshot": "workspace:*",
106
106
  "@jsenv/test": "workspace:*",
107
- "@playwright/browser-chromium": "1.46.0",
108
- "@playwright/browser-firefox": "1.46.0",
109
- "@playwright/browser-webkit": "1.46.0",
107
+ "@playwright/browser-chromium": "1.46.1",
108
+ "@playwright/browser-firefox": "1.46.1",
109
+ "@playwright/browser-webkit": "1.46.1",
110
110
  "babel-plugin-transform-async-to-promises": "0.8.18",
111
111
  "eslint": "9.9.0",
112
112
  "marked": "14.0.0",
113
113
  "open": "10.1.0",
114
- "playwright": "1.46.0",
114
+ "playwright": "1.46.1",
115
115
  "prettier": "3.3.3",
116
116
  "prettier-plugin-organize-imports": "4.0.0",
117
117
  "strip-ansi": "7.1.0"