@micro-zoe/micro-app 1.0.0-rc.29 → 1.0.0-rc.30

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/lib/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = '1.0.0-rc.29';
1
+ const version = '1.0.0-rc.30';
2
2
  // do not use isUndefined
3
3
  const isBrowser = typeof window !== 'undefined';
4
4
  // do not use isUndefined
@@ -67,7 +67,7 @@ function isBoundFunction(target) {
67
67
  function isConstructor(target) {
68
68
  var _a;
69
69
  if (isFunction(target)) {
70
- const targetStr = target.toString();
70
+ const targetStr = Function.prototype.toString.call(target);
71
71
  return (((_a = target.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === target &&
72
72
  Object.getOwnPropertyNames(target.prototype).length > 1) ||
73
73
  /^function\s+[A-Z]/.test(targetStr) ||
@@ -1085,8 +1085,14 @@ class CSSParser {
1085
1085
  layerRule() {
1086
1086
  if (!this.commonMatch(/^@layer\s*([^{;]+)/))
1087
1087
  return false;
1088
+ // @layer theme, base, components, utilities; — statement form (no braces)
1089
+ if (this.cssText.charAt(0) === ';') {
1090
+ this.commonMatch(/^;/); // delete ;
1091
+ this.matchLeadingSpaces();
1092
+ return true;
1093
+ }
1088
1094
  if (!this.matchOpenBrace())
1089
- return !!this.commonMatch(/^[;]+/);
1095
+ return false;
1090
1096
  this.matchComments();
1091
1097
  this.matchRules();
1092
1098
  if (!this.matchCloseBrace())