zss-engine 2.1.0 → 2.1.1

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
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.genBase36Hash = genBase36Hash;
4
- const util_1 = require("util");
5
4
  const { asUintN } = BigInt;
6
5
  function deepNormalize(obj) {
7
6
  if (obj === null)
@@ -35,7 +34,7 @@ function murmurhash3_x64_128(str, seed) {
35
34
  let h2 = asUintN(64, BigInt(seed));
36
35
  const c1 = 0x87c37b91114253d5n;
37
36
  const c2 = 0x4cf5ad432745937fn;
38
- const encoder = new util_1.TextEncoder();
37
+ const encoder = new TextEncoder();
39
38
  const key = encoder.encode(str);
40
39
  const len = key.length;
41
40
  const nblocks = Math.floor(len / 16);
@@ -1,4 +1,3 @@
1
- import { TextEncoder } from 'util';
2
1
  const { asUintN } = BigInt;
3
2
  function deepNormalize(obj) {
4
3
  if (obj === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zss-engine",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Zero-runtime StyleSheet Engine",
5
5
  "funding": "https://github.com/sponsors/refirst11",
6
6
  "author": "Refirst 11",