@looker/extension-sdk 26.6.0 → 26.8.0
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.
- package/CHANGELOG.md +29 -0
- package/lib/connect/connect_extension_host.js +66 -65
- package/lib/connect/connect_extension_host.js.map +1 -1
- package/lib/connect/extension_host_api.js +40 -40
- package/lib/connect/extension_host_api.js.map +1 -1
- package/lib/connect/fetch_proxy.js +3 -3
- package/lib/connect/fetch_proxy.js.map +1 -1
- package/lib/connect/global_listener.js.map +1 -1
- package/lib/connect/index.js.map +1 -1
- package/lib/connect/tile/index.js.map +1 -1
- package/lib/connect/tile/tile_sdk.js +2 -2
- package/lib/connect/tile/tile_sdk.js.map +1 -1
- package/lib/connect/tile/types.js.map +1 -1
- package/lib/connect/types.js.map +1 -1
- package/lib/connect/visualization/index.js.map +1 -1
- package/lib/connect/visualization/types.js +4 -0
- package/lib/connect/visualization/types.js.map +1 -1
- package/lib/connect/visualization/visualization_sdk.js +6 -6
- package/lib/connect/visualization/visualization_sdk.js.map +1 -1
- package/lib/esm/connect/connect_extension_host.js +66 -65
- package/lib/esm/connect/connect_extension_host.js.map +1 -1
- package/lib/esm/connect/extension_host_api.js +39 -39
- package/lib/esm/connect/extension_host_api.js.map +1 -1
- package/lib/esm/connect/fetch_proxy.js +2 -2
- package/lib/esm/connect/fetch_proxy.js.map +1 -1
- package/lib/esm/connect/global_listener.js.map +1 -1
- package/lib/esm/connect/index.js.map +1 -1
- package/lib/esm/connect/tile/index.js.map +1 -1
- package/lib/esm/connect/tile/tile_sdk.js +2 -2
- package/lib/esm/connect/tile/tile_sdk.js.map +1 -1
- package/lib/esm/connect/tile/types.js.map +1 -1
- package/lib/esm/connect/types.js.map +1 -1
- package/lib/esm/connect/visualization/index.js.map +1 -1
- package/lib/esm/connect/visualization/types.js +1 -1
- package/lib/esm/connect/visualization/types.js.map +1 -1
- package/lib/esm/connect/visualization/visualization_sdk.js +6 -6
- package/lib/esm/connect/visualization/visualization_sdk.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/sdk/extension_sdk.js.map +1 -1
- package/lib/esm/sdk/index.js.map +1 -1
- package/lib/esm/sdk/sdk_connection.js +2 -2
- package/lib/esm/sdk/sdk_connection.js.map +1 -1
- package/lib/esm/util/errors.js.map +1 -1
- package/lib/esm/util/index.js.map +1 -1
- package/lib/esm/util/logger.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/sdk/extension_sdk.js.map +1 -1
- package/lib/sdk/index.js.map +1 -1
- package/lib/sdk/sdk_connection.js +2 -2
- package/lib/sdk/sdk_connection.js.map +1 -1
- package/lib/util/errors.js.map +1 -1
- package/lib/util/index.js.map +1 -1
- package/lib/util/logger.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualization_sdk.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","ExtensionRequestType","QueryResponseImpl","constructor","queryResponse","_defineProperty","_queryResponse","update","fieldMeasures","_this$_queryResponse","_this$_queryResponse$","fields","measures","fieldDimensions","_this$_queryResponse2","_this$_queryResponse3","dimensions","fieldTableCalculations","_this$_queryResponse4","_this$_queryResponse5","table_calculations","fieldPivots","_this$_queryResponse6","_this$_queryResponse7","pivots","fieldMeasureLike","_this$_queryResponse8","_this$_queryResponse9","measure_like","fieldDimensionLike","_this$_queryResponse10","_this$_queryResponse11","dimension_like","data","_this$_queryResponse12","VisualizationConfigImpl","visConfig","_visConfig","queryFieldMeasures","_this$_visConfig","_this$_visConfig$quer","query_fields","queryFieldDimensions","_this$_visConfig2","_this$_visConfig2$que","queryFieldTableCalculations","_this$_visConfig3","_this$_visConfig3$que","queryFieldPivots","_this$_visConfig4","_this$_visConfig4$que","VisualizationSDKImpl","hostApi","updateVisData","visualizationData","isDashboardMountSupported","configureVisualization","options","send","VIS_DEFAULT_CONFIG","setVisConfig","config","VIS_CONFIG_UPDATE","updatedConfig","_this$visualizationDa","updateRowLimit","rowLimit","TILE_ROW_LIMIT_UPDATE","_this$visualizationDa2"],"sources":["../../../../src/connect/visualization/visualization_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport { NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR } from '../../util/errors';\nimport type { ExtensionHostApiImpl } from '../extension_host_api';\nimport { ExtensionRequestType } from '../types';\nimport type { Row } from '../tile';\nimport type {\n Dimension,\n Measure,\n PivotConfig,\n QueryResponse,\n RawVisConfig,\n RawVisQueryResponse,\n RawVisualizationData,\n TableCalculation,\n VisOptions,\n VisualizationConfig,\n VisualizationSDKInternal,\n} from './types';\n\nclass QueryResponseImpl implements QueryResponse {\n _queryResponse?: RawVisQueryResponse;\n\n constructor(queryResponse?: RawVisQueryResponse) {\n this._queryResponse = queryResponse;\n }\n\n update(queryResponse: RawVisQueryResponse) {\n this._queryResponse = queryResponse;\n }\n\n get fieldMeasures(): Measure[] {\n return this._queryResponse?.fields?.measures || [];\n }\n\n get fieldDimensions(): Dimension[] {\n return this._queryResponse?.fields?.dimensions || [];\n }\n\n get fieldTableCalculations(): TableCalculation[] {\n return this._queryResponse?.fields?.table_calculations || [];\n }\n\n get fieldPivots(): PivotConfig[] {\n return this._queryResponse?.fields?.pivots || [];\n }\n\n get fieldMeasureLike(): Measure[] {\n return this._queryResponse?.fields?.measure_like || [];\n }\n\n get fieldDimensionLike(): Dimension[] {\n return this._queryResponse?.fields?.dimension_like || [];\n }\n\n get data(): Row[] {\n return this._queryResponse?.data || [];\n }\n}\n\nclass VisualizationConfigImpl implements VisualizationConfig {\n _visConfig?: RawVisConfig;\n\n constructor(visConfig?: RawVisConfig) {\n this._visConfig = visConfig;\n }\n\n update(visConfig: RawVisConfig) {\n this._visConfig = visConfig;\n }\n\n get visConfig(): RawVisConfig {\n return this._visConfig || {};\n }\n\n get queryFieldMeasures(): Measure[] {\n return this._visConfig?.query_fields?.measures || [];\n }\n\n get queryFieldDimensions(): Dimension[] {\n return this._visConfig?.query_fields?.dimensions || [];\n }\n\n get queryFieldTableCalculations(): TableCalculation[] {\n return this._visConfig?.query_fields?.table_calculations || [];\n }\n\n get queryFieldPivots(): PivotConfig[] {\n return this._visConfig?.query_fields?.pivots || [];\n }\n}\n\nexport class VisualizationSDKImpl implements VisualizationSDKInternal {\n hostApi: ExtensionHostApiImpl;\n visualizationData?: RawVisualizationData;\n _visConfig?: VisualizationConfigImpl;\n _queryResponse?: QueryResponseImpl;\n\n constructor(hostApi: ExtensionHostApiImpl) {\n this.hostApi = hostApi;\n }\n\n updateVisData(visualizationData: RawVisualizationData) {\n // Ignore update messages if dashboard mounts not supported.\n // Should never happen.\n if (this.hostApi.isDashboardMountSupported) {\n this.visualizationData = visualizationData;\n if (this.visConfig && this._visConfig) {\n this._visConfig.update(this.visualizationData.visConfig);\n }\n if (this.queryResponse && this._queryResponse) {\n this._queryResponse.update(this.visualizationData.queryResponse);\n }\n }\n }\n\n configureVisualization(options: VisOptions): void {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.VIS_DEFAULT_CONFIG, { options });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n setVisConfig(config: RawVisConfig) {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.VIS_CONFIG_UPDATE, {\n updatedConfig: config,\n });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n get visConfig(): VisualizationConfig {\n if (!this._visConfig) {\n this._visConfig = new VisualizationConfigImpl(\n this.visualizationData?.visConfig\n );\n }\n return this._visConfig;\n }\n\n updateRowLimit(rowLimit: number) {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.TILE_ROW_LIMIT_UPDATE, {\n rowLimit,\n });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n get queryResponse(): QueryResponse {\n if (!this._queryResponse) {\n this._queryResponse = new QueryResponseImpl(\n this.visualizationData?.queryResponse\n );\n }\n return this._queryResponse;\n }\n}\n"],"mappings":";;;AA0BA,SAASA,uCAAuC,QAAQ,mBAAmB;AAE3E,SAASC,oBAAoB,QAAQ,UAAU;AAgB/C,MAAMC,iBAAiB,CAA0B;EAG/CC,WAAWA,CAACC,aAAmC,EAAE;IAAAC,eAAA;IAC/C,IAAI,CAACC,cAAc,GAAGF,aAAa;EACrC;EAEAG,MAAMA,CAACH,aAAkC,EAAE;IACzC,IAAI,CAACE,cAAc,GAAGF,aAAa;EACrC;EAEA,IAAII,aAAaA,CAAA,EAAc;IAAA,IAAAC,oBAAA,EAAAC,qBAAA;IAC7B,OAAO,EAAAD,oBAAA,OAAI,CAACH,cAAc,cAAAG,oBAAA,wBAAAC,qBAAA,GAAnBD,oBAAA,CAAqBE,MAAM,cAAAD,qBAAA,uBAA3BA,qBAAA,CAA6BE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AAE;QACxDC,aAAa,EAAEF;MACjB,CAAC,CAAC;IACJ,CAAC,MAAM;MACL,MAAM7D,uCAAuC;IAC/C;EACF;EAEA,IAAIoC,SAASA,CAAA,EAAwB;IACnC,IAAI,CAAC,IAAI,CAACC,UAAU,EAAE;MAAA,IAAA2B,qBAAA;MACpB,IAAI,CAAC3B,UAAU,GAAG,IAAIF,uBAAuB,EAAA6B,qBAAA,GAC3C,IAAI,CAACV,iBAAiB,cAAAU,qBAAA,uBAAtBA,qBAAA,CAAwB5B,SAC1B,CAAC;IACH;IACA,OAAO,IAAI,CAACC,UAAU;EACxB;EAEA4B,cAAcA,CAACC,QAAgB,EAAE;IAC/B,IAAI,IAAI,CAACd,OAAO,CAACG,yBAAyB,EAAE;MAC1C,IAAI,CAACH,OAAO,CAACM,IAAI,CAACzD,oBAAoB,CAACkE,qBAAqB,EAAE;QAC5DD;MACF,CAAC,CAAC;IACJ,CAAC,MAAM;MACL,MAAMlE,uCAAuC;IAC/C;EACF;EAEA,IAAII,aAAaA,CAAA,EAAkB;IACjC,IAAI,CAAC,IAAI,CAACE,cAAc,EAAE;MAAA,IAAA8D,sBAAA;MACxB,IAAI,CAAC9D,cAAc,GAAG,IAAIJ,iBAAiB,EAAAkE,sBAAA,GACzC,IAAI,CAACd,iBAAiB,cAAAc,sBAAA,uBAAtBA,sBAAA,CAAwBhE,aAC1B,CAAC;IACH;IACA,OAAO,IAAI,CAACE,cAAc;EAC5B;AACF"}
|
|
1
|
+
{"version":3,"file":"visualization_sdk.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","ExtensionRequestType","QueryResponseImpl","constructor","queryResponse","_defineProperty","_queryResponse","update","fieldMeasures","_this$_queryResponse","_this$_queryResponse$","fields","measures","fieldDimensions","_this$_queryResponse2","_this$_queryResponse3","dimensions","fieldTableCalculations","_this$_queryResponse4","_this$_queryResponse5","table_calculations","fieldPivots","_this$_queryResponse6","_this$_queryResponse7","pivots","fieldMeasureLike","_this$_queryResponse8","_this$_queryResponse9","measure_like","fieldDimensionLike","_this$_queryResponse0","_this$_queryResponse1","dimension_like","data","_this$_queryResponse10","VisualizationConfigImpl","visConfig","_visConfig","queryFieldMeasures","_this$_visConfig","_this$_visConfig$quer","query_fields","queryFieldDimensions","_this$_visConfig2","_this$_visConfig2$que","queryFieldTableCalculations","_this$_visConfig3","_this$_visConfig3$que","queryFieldPivots","_this$_visConfig4","_this$_visConfig4$que","VisualizationSDKImpl","hostApi","updateVisData","visualizationData","isDashboardMountSupported","configureVisualization","options","send","VIS_DEFAULT_CONFIG","setVisConfig","config","VIS_CONFIG_UPDATE","updatedConfig","_this$visualizationDa","updateRowLimit","rowLimit","TILE_ROW_LIMIT_UPDATE","_this$visualizationDa2"],"sources":["../../../../src/connect/visualization/visualization_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport { NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR } from '../../util/errors';\nimport type { ExtensionHostApiImpl } from '../extension_host_api';\nimport { ExtensionRequestType } from '../types';\nimport type { Row } from '../tile';\nimport type {\n Dimension,\n Measure,\n PivotConfig,\n QueryResponse,\n RawVisConfig,\n RawVisQueryResponse,\n RawVisualizationData,\n TableCalculation,\n VisOptions,\n VisualizationConfig,\n VisualizationSDKInternal,\n} from './types';\n\nclass QueryResponseImpl implements QueryResponse {\n _queryResponse?: RawVisQueryResponse;\n\n constructor(queryResponse?: RawVisQueryResponse) {\n this._queryResponse = queryResponse;\n }\n\n update(queryResponse: RawVisQueryResponse) {\n this._queryResponse = queryResponse;\n }\n\n get fieldMeasures(): Measure[] {\n return this._queryResponse?.fields?.measures || [];\n }\n\n get fieldDimensions(): Dimension[] {\n return this._queryResponse?.fields?.dimensions || [];\n }\n\n get fieldTableCalculations(): TableCalculation[] {\n return this._queryResponse?.fields?.table_calculations || [];\n }\n\n get fieldPivots(): PivotConfig[] {\n return this._queryResponse?.fields?.pivots || [];\n }\n\n get fieldMeasureLike(): Measure[] {\n return this._queryResponse?.fields?.measure_like || [];\n }\n\n get fieldDimensionLike(): Dimension[] {\n return this._queryResponse?.fields?.dimension_like || [];\n }\n\n get data(): Row[] {\n return this._queryResponse?.data || [];\n }\n}\n\nclass VisualizationConfigImpl implements VisualizationConfig {\n _visConfig?: RawVisConfig;\n\n constructor(visConfig?: RawVisConfig) {\n this._visConfig = visConfig;\n }\n\n update(visConfig: RawVisConfig) {\n this._visConfig = visConfig;\n }\n\n get visConfig(): RawVisConfig {\n return this._visConfig || {};\n }\n\n get queryFieldMeasures(): Measure[] {\n return this._visConfig?.query_fields?.measures || [];\n }\n\n get queryFieldDimensions(): Dimension[] {\n return this._visConfig?.query_fields?.dimensions || [];\n }\n\n get queryFieldTableCalculations(): TableCalculation[] {\n return this._visConfig?.query_fields?.table_calculations || [];\n }\n\n get queryFieldPivots(): PivotConfig[] {\n return this._visConfig?.query_fields?.pivots || [];\n }\n}\n\nexport class VisualizationSDKImpl implements VisualizationSDKInternal {\n hostApi: ExtensionHostApiImpl;\n visualizationData?: RawVisualizationData;\n _visConfig?: VisualizationConfigImpl;\n _queryResponse?: QueryResponseImpl;\n\n constructor(hostApi: ExtensionHostApiImpl) {\n this.hostApi = hostApi;\n }\n\n updateVisData(visualizationData: RawVisualizationData) {\n // Ignore update messages if dashboard mounts not supported.\n // Should never happen.\n if (this.hostApi.isDashboardMountSupported) {\n this.visualizationData = visualizationData;\n if (this.visConfig && this._visConfig) {\n this._visConfig.update(this.visualizationData.visConfig);\n }\n if (this.queryResponse && this._queryResponse) {\n this._queryResponse.update(this.visualizationData.queryResponse);\n }\n }\n }\n\n configureVisualization(options: VisOptions): void {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.VIS_DEFAULT_CONFIG, { options });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n setVisConfig(config: RawVisConfig) {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.VIS_CONFIG_UPDATE, {\n updatedConfig: config,\n });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n get visConfig(): VisualizationConfig {\n if (!this._visConfig) {\n this._visConfig = new VisualizationConfigImpl(\n this.visualizationData?.visConfig\n );\n }\n return this._visConfig;\n }\n\n updateRowLimit(rowLimit: number) {\n if (this.hostApi.isDashboardMountSupported) {\n this.hostApi.send(ExtensionRequestType.TILE_ROW_LIMIT_UPDATE, {\n rowLimit,\n });\n } else {\n throw NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;\n }\n }\n\n get queryResponse(): QueryResponse {\n if (!this._queryResponse) {\n this._queryResponse = new QueryResponseImpl(\n this.visualizationData?.queryResponse\n );\n }\n return this._queryResponse;\n }\n}\n"],"mappings":";;;AA0BA,SAASA,uCAAuC,QAAQ,mBAAmB;AAE3E,SAASC,oBAAoB,QAAQ,UAAU;AAgB/C,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BAAA,CAAwBhE,aAC1B,CAAC;IACH;IACA,OAAO,IAAI,CAACE,cAAc;EAC5B;AACF","ignoreList":[]}
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './connect/connect_extension_host';\nexport * from './connect/global_listener';\nexport * from './connect/visualization/types';\nexport * from './connect/tile/types';\nexport * from './connect/types';\nexport * from './sdk/extension_sdk';\nexport * from './sdk/sdk_connection';\nexport * from './util/logger';\n"],"mappings":"AA0BA,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,eAAe"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './connect/connect_extension_host';\nexport * from './connect/global_listener';\nexport * from './connect/visualization/types';\nexport * from './connect/tile/types';\nexport * from './connect/types';\nexport * from './sdk/extension_sdk';\nexport * from './sdk/sdk_connection';\nexport * from './util/logger';\n"],"mappings":"AA0BA,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk.js","names":["Looker40SDK","LookerExtensionSDK","_LookerExtensionSDK","ApiVersion","SdkConnection","createClient","hostConnection","sdk","sdk40"],"sources":["../../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n Looker40SDK,\n LookerExtensionSDK as _LookerExtensionSDK,\n} from '@looker/sdk';\nimport type { ExtensionHostApi } from '../connect';\nimport { ApiVersion } from '../connect';\n\nimport { SdkConnection } from './sdk_connection';\n\nexport class LookerExtensionSDK {\n /**\n * Creates a [[LookerSDK]] 4.0 object.\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n const sdk = new SdkConnection(hostConnection, ApiVersion.sdk40);\n return _LookerExtensionSDK.createClient(sdk, Looker40SDK);\n }\n}\n\nexport type LookerExtensionSDK40 = LookerExtensionSDK;\n"],"mappings":"AA0BA,SACEA,WAAW,EACXC,kBAAkB,IAAIC,mBAAmB,QACpC,aAAa;AAEpB,SAASC,UAAU,QAAQ,YAAY;AAEvC,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,OAAO,MAAMH,kBAAkB,CAAC;EAI9B,OAAOI,YAAYA,CAACC,cAAgC,EAAe;IACjE,IAAMC,GAAG,GAAG,IAAIH,aAAa,CAACE,cAAc,EAAEH,UAAU,CAACK,KAAK,CAAC;IAC/D,OAAON,mBAAmB,CAACG,YAAY,CAACE,GAAG,EAAEP,WAAW,CAAC;EAC3D;AACF"}
|
|
1
|
+
{"version":3,"file":"extension_sdk.js","names":["Looker40SDK","LookerExtensionSDK","_LookerExtensionSDK","ApiVersion","SdkConnection","createClient","hostConnection","sdk","sdk40"],"sources":["../../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n Looker40SDK,\n LookerExtensionSDK as _LookerExtensionSDK,\n} from '@looker/sdk';\nimport type { ExtensionHostApi } from '../connect';\nimport { ApiVersion } from '../connect';\n\nimport { SdkConnection } from './sdk_connection';\n\nexport class LookerExtensionSDK {\n /**\n * Creates a [[LookerSDK]] 4.0 object.\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n const sdk = new SdkConnection(hostConnection, ApiVersion.sdk40);\n return _LookerExtensionSDK.createClient(sdk, Looker40SDK);\n }\n}\n\nexport type LookerExtensionSDK40 = LookerExtensionSDK;\n"],"mappings":"AA0BA,SACEA,WAAW,EACXC,kBAAkB,IAAIC,mBAAmB,QACpC,aAAa;AAEpB,SAASC,UAAU,QAAQ,YAAY;AAEvC,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,OAAO,MAAMH,kBAAkB,CAAC;EAI9B,OAAOI,YAAYA,CAACC,cAAgC,EAAe;IACjE,IAAMC,GAAG,GAAG,IAAIH,aAAa,CAACE,cAAc,EAAEH,UAAU,CAACK,KAAK,CAAC;IAC/D,OAAON,mBAAmB,CAACG,YAAY,CAACE,GAAG,EAAEP,WAAW,CAAC;EAC3D;AACF","ignoreList":[]}
|
package/lib/esm/sdk/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/sdk/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './extension_sdk';\n"],"mappings":"AA0BA,cAAc,iBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/sdk/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './extension_sdk';\n"],"mappings":"AA0BA,cAAc,iBAAiB","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function asyncGeneratorStep(
|
|
2
|
-
function _asyncToGenerator(
|
|
1
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
2
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
3
3
|
export class SdkConnection {
|
|
4
4
|
constructor(hostConnection, apiVersion) {
|
|
5
5
|
this.hostConnection = hostConnection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error"],"sources":["../../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type {\n Authenticator,\n HttpMethod,\n IHostConnection,\n ITransportSettings,\n Values,\n} from '@looker/sdk-rtl';\n\nimport type { ApiVersion, ExtensionHostApi } from '../connect';\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n );\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n );\n }\n\n async stream<T>(\n _callback: (response: Response) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'));\n }\n}\n"],"mappings":";;AAoCA,OAAO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAC;EACJ;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAC;EACJ;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAC;EACtD;AACF"}
|
|
1
|
+
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error"],"sources":["../../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type {\n Authenticator,\n HttpMethod,\n IHostConnection,\n ITransportSettings,\n Values,\n} from '@looker/sdk-rtl';\n\nimport type { ApiVersion, ExtensionHostApi } from '../connect';\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n );\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n );\n }\n\n async stream<T>(\n _callback: (response: Response) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'));\n }\n}\n"],"mappings":";;AAoCA,OAAO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAC;EACJ;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAC;EACJ;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAC;EACtD;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error"],"sources":["../../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n);\n"],"mappings":"AAyBA,OAAO,IAAMA,uCAAuC,GAAG,IAAIC,KAAK,CAC9D,oDACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error"],"sources":["../../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n);\n"],"mappings":"AAyBA,OAAO,IAAMA,uCAAuC,GAAG,IAAIC,KAAK,CAC9D,oDACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/util/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './logger';\nexport * from './errors';\n"],"mappings":"AA0BA,cAAc,UAAU;AACxB,cAAc,UAAU"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/util/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './logger';\nexport * from './errors';\n"],"mappings":"AA0BA,cAAc,UAAU;AACxB,cAAc,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["logError","message","_len","arguments","length","optionalParams","Array","_key","console","error","logWarn","_len2","_key2","warn"],"sources":["../../../src/util/logger.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const logError = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.error(message, optionalParams);\n};\n\nexport const logWarn = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.warn(message, optionalParams);\n};\n"],"mappings":"AAyBA,OAAO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,OAAa,EAA+B;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAdF,cAAc,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEvDC,OAAO,CAACC,KAAK,CAACR,OAAO,EAAEI,cAAc,CAAC;AACxC,CAAC;AAED,OAAO,IAAMK,OAAO,GAAG,SAAVA,OAAOA,CAAIT,OAAa,EAA+B;EAAA,SAAAU,KAAA,GAAAR,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAK,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAdP,cAAc,CAAAO,KAAA,QAAAT,SAAA,CAAAS,KAAA;EAAA;EAEtDJ,OAAO,CAACK,IAAI,CAACZ,OAAO,EAAEI,cAAc,CAAC;AACvC,CAAC"}
|
|
1
|
+
{"version":3,"file":"logger.js","names":["logError","message","_len","arguments","length","optionalParams","Array","_key","console","error","logWarn","_len2","_key2","warn"],"sources":["../../../src/util/logger.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const logError = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.error(message, optionalParams);\n};\n\nexport const logWarn = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.warn(message, optionalParams);\n};\n"],"mappings":"AAyBA,OAAO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,OAAa,EAA+B;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAdF,cAAc,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEvDC,OAAO,CAACC,KAAK,CAACR,OAAO,EAAEI,cAAc,CAAC;AACxC,CAAC;AAED,OAAO,IAAMK,OAAO,GAAG,SAAVA,OAAOA,CAAIT,OAAa,EAA+B;EAAA,SAAAU,KAAA,GAAAR,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAK,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAdP,cAAc,CAAAO,KAAA,QAAAT,SAAA,CAAAS,KAAA;EAAA;EAEtDJ,OAAO,CAACK,IAAI,CAACZ,OAAO,EAAEI,cAAc,CAAC;AACvC,CAAC","ignoreList":[]}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_connect_extension_host","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_global_listener","_types","_types2","_types3","_extension_sdk","_sdk_connection","_logger"],"sources":["../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './connect/connect_extension_host';\nexport * from './connect/global_listener';\nexport * from './connect/visualization/types';\nexport * from './connect/tile/types';\nexport * from './connect/types';\nexport * from './sdk/extension_sdk';\nexport * from './sdk/sdk_connection';\nexport * from './util/logger';\n"],"mappings":";;;;;AA0BA,IAAAA,uBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,uBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,uBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IA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AAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAO,OAAA,CAAAX,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_connect_extension_host","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_global_listener","_types","_types2","_types3","_extension_sdk","_sdk_connection","_logger"],"sources":["../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './connect/connect_extension_host';\nexport * from './connect/global_listener';\nexport * from './connect/visualization/types';\nexport * from './connect/tile/types';\nexport * from './connect/types';\nexport * from './sdk/extension_sdk';\nexport * from './sdk/sdk_connection';\nexport * from './util/logger';\n"],"mappings":";;;;;AA0BA,IAAAA,uBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,uBAAA,EAAAI,OAAA,WAAAC,GAAA;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AAAAC,MAAA,CAAAC,IAAA,CAAAa,OAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,OAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAO,OAAA,CAAAX,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK","createClient","hostConnection","sdk","SdkConnection","ApiVersion","sdk40","_LookerExtensionSDK","Looker40SDK","exports"],"sources":["../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n Looker40SDK,\n LookerExtensionSDK as _LookerExtensionSDK,\n} from '@looker/sdk';\nimport type { ExtensionHostApi } from '../connect';\nimport { ApiVersion } from '../connect';\n\nimport { SdkConnection } from './sdk_connection';\n\nexport class LookerExtensionSDK {\n /**\n * Creates a [[LookerSDK]] 4.0 object.\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n const sdk = new SdkConnection(hostConnection, ApiVersion.sdk40);\n return _LookerExtensionSDK.createClient(sdk, Looker40SDK);\n }\n}\n\nexport type LookerExtensionSDK40 = LookerExtensionSDK;\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,kBAAkB,CAAC;EAI9B,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,IAAMC,GAAG,GAAG,IAAIC,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC;IAC/D,OAAOC,uBAAmB,CAACN,YAAY,CAACE,GAAG,EAAEK,gBAAW,CAAC;EAC3D;AACF;AAACC,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
|
|
1
|
+
{"version":3,"file":"extension_sdk.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK","createClient","hostConnection","sdk","SdkConnection","ApiVersion","sdk40","_LookerExtensionSDK","Looker40SDK","exports"],"sources":["../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n Looker40SDK,\n LookerExtensionSDK as _LookerExtensionSDK,\n} from '@looker/sdk';\nimport type { ExtensionHostApi } from '../connect';\nimport { ApiVersion } from '../connect';\n\nimport { SdkConnection } from './sdk_connection';\n\nexport class LookerExtensionSDK {\n /**\n * Creates a [[LookerSDK]] 4.0 object.\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n const sdk = new SdkConnection(hostConnection, ApiVersion.sdk40);\n return _LookerExtensionSDK.createClient(sdk, Looker40SDK);\n }\n}\n\nexport type LookerExtensionSDK40 = LookerExtensionSDK;\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,kBAAkB,CAAC;EAI9B,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,IAAMC,GAAG,GAAG,IAAIC,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC;IAC/D,OAAOC,uBAAmB,CAACN,YAAY,CAACE,GAAG,EAAEK,gBAAW,CAAC;EAC3D;AACF;AAACC,OAAA,CAAAT,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/lib/sdk/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_extension_sdk","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/sdk/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './extension_sdk';\n"],"mappings":";;;;;AA0BA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_extension_sdk","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/sdk/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './extension_sdk';\n"],"mappings":";;;;;AA0BA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SdkConnection = void 0;
|
|
7
|
-
function asyncGeneratorStep(
|
|
8
|
-
function _asyncToGenerator(
|
|
7
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
8
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
9
9
|
class SdkConnection {
|
|
10
10
|
constructor(hostConnection, apiVersion) {
|
|
11
11
|
this.hostConnection = hostConnection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error","exports"],"sources":["../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type {\n Authenticator,\n HttpMethod,\n IHostConnection,\n ITransportSettings,\n Values,\n} from '@looker/sdk-rtl';\n\nimport type { ApiVersion, ExtensionHostApi } from '../connect';\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n );\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n );\n }\n\n async stream<T>(\n _callback: (response: Response) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'));\n }\n}\n"],"mappings":";;;;;;;;AAoCO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAC;EACJ;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAC;EACJ;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAC;EACtD;AACF;AAACC,OAAA,CAAA5B,aAAA,GAAAA,aAAA"}
|
|
1
|
+
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error","exports"],"sources":["../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type {\n Authenticator,\n HttpMethod,\n IHostConnection,\n ITransportSettings,\n Values,\n} from '@looker/sdk-rtl';\n\nimport type { ApiVersion, ExtensionHostApi } from '../connect';\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n );\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n );\n }\n\n async stream<T>(\n _callback: (response: Response) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'));\n }\n}\n"],"mappings":";;;;;;;;AAoCO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAC;EACJ;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAC;EACJ;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAC;EACtD;AACF;AAACC,OAAA,CAAA5B,aAAA,GAAAA,aAAA","ignoreList":[]}
|
package/lib/util/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","exports","Error"],"sources":["../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n);\n"],"mappings":";;;;;;AAyBO,IAAMA,uCAAuC,GAAAC,OAAA,CAAAD,uCAAA,GAAG,IAAIE,KAAK,CAC9D,oDACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","exports","Error"],"sources":["../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n);\n"],"mappings":";;;;;;AAyBO,IAAMA,uCAAuC,GAAAC,OAAA,CAAAD,uCAAA,GAAG,IAAIE,KAAK,CAC9D,oDACF,CAAC","ignoreList":[]}
|
package/lib/util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_logger","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_errors"],"sources":["../../src/util/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './logger';\nexport * from './errors';\n"],"mappings":";;;;;AA0BA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_logger","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_errors"],"sources":["../../src/util/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './logger';\nexport * from './errors';\n"],"mappings":";;;;;AA0BA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/lib/util/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["logError","exports","message","_len","arguments","length","optionalParams","Array","_key","console","error","logWarn","_len2","_key2","warn"],"sources":["../../src/util/logger.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const logError = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.error(message, optionalParams);\n};\n\nexport const logWarn = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.warn(message, optionalParams);\n};\n"],"mappings":";;;;;;AAyBO,IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA,CAAIE,OAAa,EAA+B;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAdF,cAAc,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEvDC,OAAO,CAACC,KAAK,CAACR,OAAO,EAAEI,cAAc,CAAC;AACxC,CAAC;AAEM,IAAMK,OAAO,GAAAV,OAAA,CAAAU,OAAA,GAAG,SAAVA,OAAOA,CAAIT,OAAa,EAA+B;EAAA,SAAAU,KAAA,GAAAR,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAK,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAdP,cAAc,CAAAO,KAAA,QAAAT,SAAA,CAAAS,KAAA;EAAA;EAEtDJ,OAAO,CAACK,IAAI,CAACZ,OAAO,EAAEI,cAAc,CAAC;AACvC,CAAC"}
|
|
1
|
+
{"version":3,"file":"logger.js","names":["logError","exports","message","_len","arguments","length","optionalParams","Array","_key","console","error","logWarn","_len2","_key2","warn"],"sources":["../../src/util/logger.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const logError = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.error(message, optionalParams);\n};\n\nexport const logWarn = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.warn(message, optionalParams);\n};\n"],"mappings":";;;;;;AAyBO,IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA,CAAIE,OAAa,EAA+B;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAdF,cAAc,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEvDC,OAAO,CAACC,KAAK,CAACR,OAAO,EAAEI,cAAc,CAAC;AACxC,CAAC;AAEM,IAAMK,OAAO,GAAAV,OAAA,CAAAU,OAAA,GAAG,SAAVA,OAAOA,CAAIT,OAAa,EAA+B;EAAA,SAAAU,KAAA,GAAAR,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAK,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAdP,cAAc,CAAAO,KAAA,QAAAT,SAAA,CAAAS,KAAA;EAAA;EAEtDJ,OAAO,CAACK,IAAI,CAACZ,OAAO,EAAEI,cAAc,CAAC;AACvC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@looker/extension-sdk",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.8.0",
|
|
4
4
|
"description": "Looker Extension SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@looker/chatty": "2.3.9",
|
|
41
|
-
"@looker/sdk": "26.
|
|
42
|
-
"@looker/sdk-rtl": "21.6.
|
|
41
|
+
"@looker/sdk": "26.8.0",
|
|
42
|
+
"@looker/sdk-rtl": "21.6.5",
|
|
43
43
|
"deepmerge": "^4.2.2",
|
|
44
44
|
"semver": "^7.3.4"
|
|
45
45
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"Looker",
|
|
48
48
|
"extension-sdk"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2eef678cbe8af38ea6070b08e80895df7c5f5ee0"
|
|
51
51
|
}
|