@vue/shared 3.4.25 → 3.4.27

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.25
2
+ * @vue/shared v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -85,10 +85,11 @@ const invokeArrayFns = (fns, arg) => {
85
85
  fns[i](arg);
86
86
  }
87
87
  };
88
- const def = (obj, key, value) => {
88
+ const def = (obj, key, value, writable = false) => {
89
89
  Object.defineProperty(obj, key, {
90
90
  configurable: true,
91
91
  enumerable: false,
92
+ writable,
92
93
  value
93
94
  });
94
95
  };
@@ -276,8 +277,8 @@ function stringifyStyle(styles) {
276
277
  }
277
278
  for (const key in styles) {
278
279
  const value = styles[key];
279
- const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
280
280
  if (isString(value) || typeof value === "number") {
281
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
281
282
  ret += `${normalizedKey}:${value};`;
282
283
  }
283
284
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.25
2
+ * @vue/shared v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -85,10 +85,11 @@ const invokeArrayFns = (fns, arg) => {
85
85
  fns[i](arg);
86
86
  }
87
87
  };
88
- const def = (obj, key, value) => {
88
+ const def = (obj, key, value, writable = false) => {
89
89
  Object.defineProperty(obj, key, {
90
90
  configurable: true,
91
91
  enumerable: false,
92
+ writable,
92
93
  value
93
94
  });
94
95
  };
@@ -276,8 +277,8 @@ function stringifyStyle(styles) {
276
277
  }
277
278
  for (const key in styles) {
278
279
  const value = styles[key];
279
- const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
280
280
  if (isString(value) || typeof value === "number") {
281
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
281
282
  ret += `${normalizedKey}:${value};`;
282
283
  }
283
284
  }
package/dist/shared.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
62
62
  export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
63
63
  export declare const hasChanged: (value: any, oldValue: any) => boolean;
64
64
  export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
65
- export declare const def: (obj: object, key: string | symbol, value: any) => void;
65
+ export declare const def: (obj: object, key: string | symbol, value: any, writable?: boolean) => void;
66
66
  /**
67
67
  * "123-foo" will be parsed to 123
68
68
  * This is used for the .number modifier in v-model
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.25
2
+ * @vue/shared v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -81,10 +81,11 @@ const invokeArrayFns = (fns, arg) => {
81
81
  fns[i](arg);
82
82
  }
83
83
  };
84
- const def = (obj, key, value) => {
84
+ const def = (obj, key, value, writable = false) => {
85
85
  Object.defineProperty(obj, key, {
86
86
  configurable: true,
87
87
  enumerable: false,
88
+ writable,
88
89
  value
89
90
  });
90
91
  };
@@ -272,8 +273,8 @@ function stringifyStyle(styles) {
272
273
  }
273
274
  for (const key in styles) {
274
275
  const value = styles[key];
275
- const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
276
276
  if (isString(value) || typeof value === "number") {
277
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
277
278
  ret += `${normalizedKey}:${value};`;
278
279
  }
279
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.4.25",
3
+ "version": "3.4.27",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",