@weapp-tailwindcss/postcss 3.3.6 → 3.3.7

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,7 +1,6 @@
1
- import { parseCssImportSpecifier, quoteCssImportSpecifier } from "./resolve-DQiOQfoY.js";
1
+ import { parseCssImportSpecifier, quoteCssImportSpecifier, tokenizer, u } from "./resolve-D-FbFBpF.js";
2
2
  import { postcss as postcss$1 } from "./postcss-runtime-i5rHe_mj.js";
3
3
  import postcss from "postcss";
4
- import { TokenType, tokenizer } from "@csstools/css-tokenizer";
5
4
  import scss, { default as scssSyntax } from "postcss-scss";
6
5
  //#region src/syntax/parse.ts
7
6
  /** 解析标准 CSS;调用方负责处理非法输入。 */
@@ -103,17 +102,17 @@ function hasCssLocationDependencies(source) {
103
102
  } });
104
103
  const nextSignificant = () => {
105
104
  let token = stream.nextToken();
106
- while (token[0] === TokenType.Whitespace || token[0] === TokenType.Comment) token = stream.nextToken();
105
+ while (token[0] === u.Whitespace || token[0] === u.Comment) token = stream.nextToken();
107
106
  return token;
108
107
  };
109
108
  while (!stream.endOfFile()) {
110
109
  const token = stream.nextToken();
111
- if (token[0] === TokenType.AtKeyword && token[4].value.toLowerCase() === "import") return true;
112
- if (token[0] === TokenType.URL && !isIndependentUrl(token[4].value)) return true;
113
- if (token[0] === TokenType.Function && token[4].value.toLowerCase() === "url") {
110
+ if (token[0] === u.AtKeyword && token[4].value.toLowerCase() === "import") return true;
111
+ if (token[0] === u.URL && !isIndependentUrl(token[4].value)) return true;
112
+ if (token[0] === u.Function && token[4].value.toLowerCase() === "url") {
114
113
  const value = nextSignificant();
115
- if (value[0] !== TokenType.String || !isIndependentUrl(value[4].value)) return true;
116
- if (nextSignificant()[0] !== TokenType.CloseParen) return true;
114
+ if (value[0] !== u.String || !isIndependentUrl(value[4].value)) return true;
115
+ if (nextSignificant()[0] !== u.CloseParen) return true;
117
116
  }
118
117
  }
119
118
  return malformed;