@deephaven/app-utils 0.38.1-beta.7 → 0.38.1-chart-refactor.20

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,4 +1,4 @@
1
- import { ConnectOptions } from '@deephaven/jsapi-types';
1
+ import type { ConnectOptions } from '@deephaven/jsapi-types';
2
2
  /**
3
3
  * Get the base URL of the API
4
4
  * @param apiUrl API URL
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ConnectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAE9C;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAG9C;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAKlD"}
1
+ {"version":3,"file":"ConnectUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ConnectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAE9C;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAG9C;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAKlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectUtils.js","names":["getBaseUrl","apiUrl","URL","window","location","getEnvoyPrefix","searchParams","URLSearchParams","search","get","getConnectOptions","envoyPrefix","headers"],"sources":["../../src/utils/ConnectUtils.ts"],"sourcesContent":["import { ConnectOptions } from '@deephaven/jsapi-types';\n\n/**\n * Get the base URL of the API\n * @param apiUrl API URL\n * @returns URL for the base of the API\n */\nexport function getBaseUrl(apiUrl: string): URL {\n return new URL(apiUrl, `${window.location}`);\n}\n\n/**\n * Get the Envoy prefix header value\n * @returns Envoy prefix header value\n */\nexport function getEnvoyPrefix(): string | null {\n const searchParams = new URLSearchParams(window.location.search);\n return searchParams.get('envoyPrefix');\n}\n\nexport function getConnectOptions(): ConnectOptions {\n const envoyPrefix = getEnvoyPrefix();\n return envoyPrefix != null\n ? { headers: { 'envoy-prefix': envoyPrefix } }\n : { headers: {} };\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,UAAU,CAACC,MAAc,EAAO;EAC9C,OAAO,IAAIC,GAAG,CAACD,MAAM,YAAKE,MAAM,CAACC,QAAQ,EAAG;AAC9C;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAc,GAAkB;EAC9C,IAAMC,YAAY,GAAG,IAAIC,eAAe,CAACJ,MAAM,CAACC,QAAQ,CAACI,MAAM,CAAC;EAChE,OAAOF,YAAY,CAACG,GAAG,CAAC,aAAa,CAAC;AACxC;AAEA,OAAO,SAASC,iBAAiB,GAAmB;EAClD,IAAMC,WAAW,GAAGN,cAAc,EAAE;EACpC,OAAOM,WAAW,IAAI,IAAI,GACtB;IAAEC,OAAO,EAAE;MAAE,cAAc,EAAED;IAAY;EAAE,CAAC,GAC5C;IAAEC,OAAO,EAAE,CAAC;EAAE,CAAC;AACrB"}
1
+ {"version":3,"file":"ConnectUtils.js","names":["getBaseUrl","apiUrl","URL","window","location","getEnvoyPrefix","searchParams","URLSearchParams","search","get","getConnectOptions","envoyPrefix","headers"],"sources":["../../src/utils/ConnectUtils.ts"],"sourcesContent":["import type { ConnectOptions } from '@deephaven/jsapi-types';\n\n/**\n * Get the base URL of the API\n * @param apiUrl API URL\n * @returns URL for the base of the API\n */\nexport function getBaseUrl(apiUrl: string): URL {\n return new URL(apiUrl, `${window.location}`);\n}\n\n/**\n * Get the Envoy prefix header value\n * @returns Envoy prefix header value\n */\nexport function getEnvoyPrefix(): string | null {\n const searchParams = new URLSearchParams(window.location.search);\n return searchParams.get('envoyPrefix');\n}\n\nexport function getConnectOptions(): ConnectOptions {\n const envoyPrefix = getEnvoyPrefix();\n return envoyPrefix != null\n ? { headers: { 'envoy-prefix': envoyPrefix } }\n : { headers: {} };\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,UAAU,CAACC,MAAc,EAAO;EAC9C,OAAO,IAAIC,GAAG,CAACD,MAAM,YAAKE,MAAM,CAACC,QAAQ,EAAG;AAC9C;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAc,GAAkB;EAC9C,IAAMC,YAAY,GAAG,IAAIC,eAAe,CAACJ,MAAM,CAACC,QAAQ,CAACI,MAAM,CAAC;EAChE,OAAOF,YAAY,CAACG,GAAG,CAAC,aAAa,CAAC;AACxC;AAEA,OAAO,SAASC,iBAAiB,GAAmB;EAClD,IAAMC,WAAW,GAAGN,cAAc,EAAE;EACpC,OAAOM,WAAW,IAAI,IAAI,GACtB;IAAEC,OAAO,EAAE;MAAE,cAAc,EAAED;IAAY;EAAE,CAAC,GAC5C;IAAEC,OAAO,EAAE,CAAC;EAAE,CAAC;AACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/app-utils",
3
- "version": "0.38.1-beta.7+ce1fe2ce",
3
+ "version": "0.38.1-chart-refactor.20+052a4610",
4
4
  "description": "Deephaven App Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -28,15 +28,15 @@
28
28
  "redux": "^4.x"
29
29
  },
30
30
  "dependencies": {
31
- "@deephaven/auth-plugins": "^0.38.1-beta.7+ce1fe2ce",
32
- "@deephaven/components": "^0.38.1-beta.7+ce1fe2ce",
33
- "@deephaven/jsapi-bootstrap": "^0.38.1-beta.7+ce1fe2ce",
34
- "@deephaven/jsapi-components": "^0.38.1-beta.7+ce1fe2ce",
35
- "@deephaven/jsapi-types": "^0.38.1-beta.7+ce1fe2ce",
36
- "@deephaven/jsapi-utils": "^0.38.1-beta.7+ce1fe2ce",
37
- "@deephaven/log": "^0.38.1-beta.7+ce1fe2ce",
38
- "@deephaven/react-hooks": "^0.38.1-beta.7+ce1fe2ce",
39
- "@deephaven/utils": "^0.38.1-beta.7+ce1fe2ce",
31
+ "@deephaven/auth-plugins": "^0.38.1-chart-refactor.20+052a4610",
32
+ "@deephaven/components": "^0.38.1-chart-refactor.20+052a4610",
33
+ "@deephaven/jsapi-bootstrap": "^0.38.1-chart-refactor.20+052a4610",
34
+ "@deephaven/jsapi-components": "^0.38.1-chart-refactor.20+052a4610",
35
+ "@deephaven/jsapi-types": "^0.38.1-chart-refactor.20+052a4610",
36
+ "@deephaven/jsapi-utils": "^0.38.1-chart-refactor.20+052a4610",
37
+ "@deephaven/log": "^0.38.1-chart-refactor.20+052a4610",
38
+ "@deephaven/react-hooks": "^0.38.1-chart-refactor.20+052a4610",
39
+ "@deephaven/utils": "^0.38.1-chart-refactor.20+052a4610",
40
40
  "@paciolan/remote-component": "2.13.0",
41
41
  "@paciolan/remote-module-loader": "^3.0.2",
42
42
  "fira": "mozilla/fira#4.202"
@@ -56,5 +56,5 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "ce1fe2ce8cf28c4bc90356ebb25422835b5070df"
59
+ "gitHead": "052a4610ca82d250aa07ac1d08ac277300d420b7"
60
60
  }