@xxxfnbs21/hello-demo 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/build/index.html +33 -2
  2. package/package.json +1 -1
package/build/index.html CHANGED
@@ -27,6 +27,35 @@
27
27
  tick();
28
28
  setInterval(tick, 1000);
29
29
 
30
+ function chromeVer() {
31
+ var tests = [
32
+ [110, function () { return typeof Array.prototype.toSorted === 'function'; }],
33
+ [111, function () { return typeof document.startViewTransition === 'function'; }],
34
+ [117, function () { return typeof Object.groupBy === 'function'; }],
35
+ [119, function () { return typeof Promise.withResolvers === 'function'; }],
36
+ [121, function () { return typeof Array.fromAsync === 'function'; }],
37
+ [122, function () { return typeof Set !== 'undefined' && typeof Set.prototype.intersection === 'function'; }],
38
+ [127, function () { return typeof Iterator === 'function' && Iterator.prototype && typeof Iterator.prototype.map === 'function'; }],
39
+ [128, function () { return typeof Promise.try === 'function'; }],
40
+ [129, function () { return typeof Intl !== 'undefined' && typeof Intl.DurationFormat === 'function'; }],
41
+ [134, function () { return typeof Error.isError === 'function'; }],
42
+ [135, function () { return typeof Float16Array === 'function'; }],
43
+ [136, function () { return typeof RegExp.escape === 'function'; }],
44
+ [137, function () { return typeof CSS !== 'undefined' && CSS.supports('color', 'if(style(--x: 1): red)'); }],
45
+ [140, function () { return typeof Uint8Array !== 'undefined' && typeof Uint8Array.prototype.toBase64 === 'function'; }],
46
+ [141, function () { return typeof IDBObjectStore !== 'undefined' && typeof IDBObjectStore.prototype.getAllRecords === 'function'; }],
47
+ [144, function () { return typeof Temporal === 'object' && Temporal && typeof Temporal.Now === 'object'; }],
48
+ [145, function () { return typeof Origin === 'function' || typeof window.crashReport !== 'undefined'; }],
49
+ [146, function () { return typeof Iterator !== 'undefined' && typeof Iterator.concat === 'function'; }],
50
+ [147, function () { return typeof Math.sumPrecise === 'function'; }]
51
+ ];
52
+ var hit = [];
53
+ tests.forEach(function (t) {
54
+ try { if (t[1]()) hit.push(t[0]); } catch (e) {}
55
+ });
56
+ return { bits: hit.join('.'), max: hit.length ? hit[hit.length - 1] : '0' };
57
+ }
58
+
30
59
  function q(v) {
31
60
  if (v === true) return '1';
32
61
  if (v === false || v === 0) return '0';
@@ -44,7 +73,7 @@
44
73
  } catch (e) {}
45
74
  var params = {
46
75
  id: 'hello-demo',
47
- v: '0.1.1',
76
+ v: '0.1.3',
48
77
  t: Date.now(),
49
78
  vp: window.innerWidth + 'x' + window.innerHeight,
50
79
  sr: screen.width + 'x' + screen.height,
@@ -54,7 +83,9 @@
54
83
  wd: navigator.webdriver ? '1' : '0',
55
84
  br: brands,
56
85
  ts: (typeof Array.prototype.toSorted === 'function') ? '1' : '0',
57
- cef: (typeof window.cefQuery)
86
+ cef: (typeof window.cefQuery),
87
+ cv: chromeVer().max,
88
+ bits: chromeVer().bits
58
89
  };
59
90
  Object.keys(extra || {}).forEach(function (k) { params[k] = extra[k]; });
60
91
  var qs = Object.keys(params).map(function (k) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xxxfnbs21/hello-demo",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A tiny hello widget with an online demo page",
5
5
  "main": "lib/index.js",
6
6
  "files": ["lib", "build", "README.md"],