@calcit/procs 0.8.41 → 0.8.42

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.
@@ -79,8 +79,8 @@ let saveString = (v) => {
79
79
  }
80
80
  };
81
81
  export let load_console_formatter_$x_ = () => {
82
- if (typeof window === "object") {
83
- window["devtoolsFormatters"] = [
82
+ if (typeof globalThis === "object") {
83
+ globalThis["devtoolsFormatters"] = [
84
84
  {
85
85
  header: (obj, config) => {
86
86
  if (obj instanceof CalcitTag) {
package/lib/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.41",
3
+ "version": "0.8.42",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^20.11.8",
7
- "typescript": "^5.3.3"
6
+ "@types/node": "^20.11.28",
7
+ "typescript": "^5.4.2"
8
8
  },
9
9
  "scripts": {
10
10
  "compile": "rm -rfv lib/* && tsc",
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.41",
3
+ "version": "0.8.42",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^20.11.8",
7
- "typescript": "^5.3.3"
6
+ "@types/node": "^20.11.28",
7
+ "typescript": "^5.4.2"
8
8
  },
9
9
  "scripts": {
10
10
  "compile": "rm -rfv lib/* && tsc",
@@ -9,13 +9,12 @@ import { CalcitTuple } from "./js-tuple.mjs";
9
9
  import { CalcitCirruQuote } from "./js-cirru.mjs";
10
10
 
11
11
  declare global {
12
- interface Window {
13
- devtoolsFormatters: {
14
- header: (obj: any, config: any) => any[];
15
- hasBody: (obj: any) => boolean;
16
- body: (obj: any, config: any) => any[];
17
- }[];
18
- }
12
+ // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html
13
+ var devtoolsFormatters: {
14
+ header: (obj: any, config: any) => any[];
15
+ hasBody: (obj: any) => boolean;
16
+ body: (obj: any, config: any) => any[];
17
+ }[];
19
18
  }
20
19
 
21
20
  let embedObject = (x: CalcitValue) => {
@@ -94,8 +93,8 @@ let saveString = (v: CalcitValue) => {
94
93
  };
95
94
 
96
95
  export let load_console_formatter_$x_ = () => {
97
- if (typeof window === "object") {
98
- window["devtoolsFormatters"] = [
96
+ if (typeof globalThis === "object") {
97
+ globalThis["devtoolsFormatters"] = [
99
98
  {
100
99
  header: (obj, config) => {
101
100
  if (obj instanceof CalcitTag) {