@blocklet/pages-kit 0.4.16-beta.20250309-3 → 0.4.16

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.
@@ -138,7 +138,10 @@ function injectGlobalComponents() {
138
138
  let hash = 0;
139
139
  for (let i = 0; i < str.length; i++) {
140
140
  const char = str.charCodeAt(i);
141
- hash = hash * 2 ** 5 - hash + char;
141
+ // eslint-disable-next-line no-bitwise
142
+ hash = (hash << 5) - hash + char;
143
+ // eslint-disable-next-line no-bitwise
144
+ hash &= hash;
142
145
  }
143
146
  return hash.toString(16);
144
147
  };
@@ -151,8 +154,6 @@ function injectGlobalComponents() {
151
154
  if (cachedData) {
152
155
  const { hash, imports } = JSON.parse(cachedData);
153
156
  if (hash === moduleHash) {
154
- // eslint-disable-next-line no-console
155
- console.log(`getImportsFromCache: ${hash}`, imports);
156
157
  return imports; // 返回缓存的 imports
157
158
  }
158
159
  }