git.fiddlerwoaroof.com
Browse code

chore(es-compat): no bigint literals, bump version

Edward authored on 10/01/2022 08:52:38
Showing 3 changed files
... ...
@@ -1,11 +1,11 @@
1 1
 {
2 2
   "compilerOptions": {
3
-    "target": "es2017",
3
+    "target": "es2020",
4 4
     "baseUrl": "src",
5 5
     "allowSyntheticDefaultImports": true,
6 6
     "noEmit": true,
7 7
     "checkJs": true,
8
-    "lib": ["es2017"],
8
+    "lib": ["es2020"],
9 9
     "rootDirs": ["src"],
10 10
     "module": "commonjs"
11 11
   },
... ...
@@ -3289,9 +3289,9 @@
3289 3289
       }
3290 3290
     },
3291 3291
     "node_modules/caniuse-lite": {
3292
-      "version": "1.0.30001297",
3293
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001297.tgz",
3294
-      "integrity": "sha512-6bbIbowYG8vFs/Lk4hU9jFt7NknGDleVAciK916tp6ft1j+D//ZwwL6LbF1wXMQ32DMSjeuUV8suhh6dlmFjcA==",
3292
+      "version": "1.0.30001298",
3293
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001298.tgz",
3294
+      "integrity": "sha512-AcKqikjMLlvghZL/vfTHorlQsLDhGRalYf1+GmWCf5SCMziSGjRYQW/JEksj14NaYHIR6KIhrFAy0HV5C25UzQ==",
3295 3295
       "dev": true,
3296 3296
       "funding": {
3297 3297
         "type": "opencollective",
... ...
@@ -11073,9 +11073,9 @@
11073 11073
       "dev": true
11074 11074
     },
11075 11075
     "caniuse-lite": {
11076
-      "version": "1.0.30001297",
11077
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001297.tgz",
11078
-      "integrity": "sha512-6bbIbowYG8vFs/Lk4hU9jFt7NknGDleVAciK916tp6ft1j+D//ZwwL6LbF1wXMQ32DMSjeuUV8suhh6dlmFjcA==",
11076
+      "version": "1.0.30001298",
11077
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001298.tgz",
11078
+      "integrity": "sha512-AcKqikjMLlvghZL/vfTHorlQsLDhGRalYf1+GmWCf5SCMziSGjRYQW/JEksj14NaYHIR6KIhrFAy0HV5C25UzQ==",
11079 11079
       "dev": true
11080 11080
     },
11081 11081
     "chalk": {
... ...
@@ -107,13 +107,13 @@ describe("matches_specializer", () => {
107 107
     });
108 108
 
109 109
     test("handles BigInt", () => {
110
-      expect(4n).not.toBe(Object(4n));
110
+      expect(BigInt(4)).not.toBe(Object(BigInt(4)));
111 111
 
112
-      expect(uut.matches_specializer(Object(4n), BigInt)).toBeTruthy();
113
-      expect(uut.matches_specializer(Object(4n), Object)).toBeTruthy();
112
+      expect(uut.matches_specializer(Object(BigInt(4)), BigInt)).toBeTruthy();
113
+      expect(uut.matches_specializer(Object(BigInt(4)), Object)).toBeTruthy();
114 114
 
115
-      expect(uut.matches_specializer(4n, BigInt)).toBeTruthy();
116
-      expect(uut.matches_specializer(4n, Object)).toBeTruthy();
115
+      expect(uut.matches_specializer(BigInt(4), BigInt)).toBeTruthy();
116
+      expect(uut.matches_specializer(BigInt(4), Object)).toBeTruthy();
117 117
     });
118 118
   });
119 119