Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@looker/chatty

Package Overview
Dependencies
Maintainers
10
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@looker/chatty - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

lib/client_builder.d.ts

@@ -1,2 +0,2 @@

import { Callback, CallbackStore } from './types';
import type { Callback, CallbackStore } from './types';
import { ChattyClient } from './client';

@@ -3,0 +3,0 @@ /**

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyClientBuilder = void 0;
var client_1 = require("./client");

@@ -40,3 +43,3 @@ /**

},
enumerable: true,
enumerable: false,
configurable: true

@@ -48,3 +51,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -56,3 +59,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -59,0 +62,0 @@ });

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyClientMessages = void 0;
/**

@@ -27,0 +30,0 @@ * The recognized set of events that are sent from the client to the host.

@@ -1,2 +0,2 @@

import { ChattyClientBuilder } from './client_builder';
import type { ChattyClientBuilder } from './client_builder';
import 'es6-promise/auto';

@@ -3,0 +3,0 @@ /**

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

@@ -73,6 +75,7 @@ var __assign = (this && this.__assign) || function () {

Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyClient = exports.ChattyClientStates = void 0;
var debugLib = require("debug");
var client_messages_1 = require("./client_messages");
var host_messages_1 = require("./host_messages");
require("es6-promise/auto"); // Polyfill only browsers without Promises
var debugLib = require("debug");
/**

@@ -116,3 +119,3 @@ * @private

},
enumerable: true,
enumerable: false,
configurable: true

@@ -127,3 +130,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -155,3 +158,6 @@ });

}
_this.sendMsg(client_messages_1.ChattyClientMessages.Message, { eventName: eventName, payload: payload });
_this.sendMsg(client_messages_1.ChattyClientMessages.Message, {
eventName: eventName,
payload: payload,
});
},

@@ -177,7 +183,7 @@ sendAndReceive: function (eventName) {

}
_this._receivers[sequence] = { resolve: resolve, reject: reject, timeoutId: timeoutId };
_this._receivers[sequence] = { reject: reject, resolve: resolve, timeoutId: timeoutId };
})];
});
});
}
},
});

@@ -187,3 +193,5 @@ break;

if (_this._handlers[evt.data.data.eventName]) {
_this._handlers[evt.data.data.eventName].forEach(function (fn) { return fn.apply(_this, evt.data.data.payload); });
_this._handlers[evt.data.data.eventName].forEach(function (fn) {
return fn.apply(_this, evt.data.data.payload);
});
}

@@ -196,3 +204,5 @@ break;

if (_this._handlers[eventName_1]) {
results = _this._handlers[eventName_1].map(function (fn) { return fn.apply(_this, payload_1); });
results = _this._handlers[eventName_1].map(function (fn) {
return fn.apply(_this, payload_1);
});
}

@@ -209,9 +219,11 @@ Promise.all(results)

case host_messages_1.ChattyHostMessages.Response:
var receiver = _this._receivers[evt.data.data.sequence];
if (receiver) {
delete _this._receivers[evt.data.data.sequence];
if (receiver.timeoutId) {
clearTimeout(receiver.timeoutId);
{
var receiver = _this._receivers[evt.data.data.sequence];
if (receiver) {
delete _this._receivers[evt.data.data.sequence];
if (receiver.timeoutId) {
clearTimeout(receiver.timeoutId);
}
receiver.resolve(evt.data.data.payload);
}
receiver.resolve(evt.data.data.payload);
}

@@ -221,10 +233,11 @@ break;

{
var receiver_1 = _this._receivers[evt.data.data.sequence];
if (receiver_1) {
var receiver = _this._receivers[evt.data.data.sequence];
if (receiver) {
delete _this._receivers[evt.data.data.sequence];
if (receiver_1.timeoutId) {
clearTimeout(receiver_1.timeoutId);
if (receiver.timeoutId) {
clearTimeout(receiver.timeoutId);
}
receiver_1.reject(typeof evt.data.data.payload === 'string' ?
new Error(evt.data.data.payload) : evt.data.data.payload);
receiver.reject(typeof evt.data.data.payload === 'string'
? new Error(evt.data.data.payload)
: evt.data.data.payload);
}

@@ -244,3 +257,3 @@ }

this._hostWindow.postMessage({
action: client_messages_1.ChattyClientMessages.Syn
action: client_messages_1.ChattyClientMessages.Syn,
}, this._targetOrigin, [this._channel.port2]);

@@ -247,0 +260,0 @@ this._state = ChattyClientStates.Syn;

@@ -1,2 +0,2 @@

import { Callback, CallbackStore } from './types';
import type { Callback, CallbackStore } from './types';
import { ChattyHost } from './host';

@@ -3,0 +3,0 @@ /**

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyHostBuilder = void 0;
var host_1 = require("./host");

@@ -47,3 +50,3 @@ /**

},
enumerable: true,
enumerable: false,
configurable: true

@@ -55,3 +58,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -63,3 +66,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -71,3 +74,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -79,3 +82,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -87,3 +90,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -95,3 +98,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -103,3 +106,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -106,0 +109,0 @@ });

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyHostMessages = void 0;
/**

@@ -27,0 +30,0 @@ * The recognized set of messages that are sent from the host to the client.

@@ -1,2 +0,2 @@

import { ChattyHostBuilder } from './host_builder';
import type { ChattyHostBuilder } from './host_builder';
import 'es6-promise/auto';

@@ -3,0 +3,0 @@ /**

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

@@ -73,6 +75,7 @@ var __assign = (this && this.__assign) || function () {

Object.defineProperty(exports, "__esModule", { value: true });
exports.ChattyHost = exports.ChattyHostStates = void 0;
var debugLib = require("debug");
var client_messages_1 = require("./client_messages");
var host_messages_1 = require("./host_messages");
require("es6-promise/auto"); // Polyfill only browsers without Promises
var debugLib = require("debug");
/**

@@ -133,3 +136,3 @@ * @private

},
enumerable: true,
enumerable: false,
configurable: true

@@ -144,3 +147,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -177,3 +180,6 @@ });

}
_this.sendMsg(host_messages_1.ChattyHostMessages.Message, { eventName: eventName, payload: payload });
_this.sendMsg(host_messages_1.ChattyHostMessages.Message, {
eventName: eventName,
payload: payload,
});
},

@@ -199,7 +205,7 @@ sendAndReceive: function (eventName) {

}
_this._receivers[sequence] = { resolve: resolve, reject: reject, timeoutId: timeoutId };
_this._receivers[sequence] = { reject: reject, resolve: resolve, timeoutId: timeoutId };
})];
});
});
}
},
});

@@ -209,3 +215,5 @@ break;

if (_this._handlers[evt.data.data.eventName]) {
_this._handlers[evt.data.data.eventName].forEach(function (fn) { return fn.apply(_this, evt.data.data.payload); });
_this._handlers[evt.data.data.eventName].forEach(function (fn) {
return fn.apply(_this, evt.data.data.payload);
});
}

@@ -218,3 +226,5 @@ break;

if (_this._handlers[eventName_1]) {
results = _this._handlers[eventName_1].map(function (fn) { return fn.apply(_this, payload_1); });
results = _this._handlers[eventName_1].map(function (fn) {
return fn.apply(_this, payload_1);
});
}

@@ -250,4 +260,5 @@ Promise.all(results)

}
receiver.reject(typeof evt.data.data.payload === 'string' ?
new Error(evt.data.data.payload) : evt.data.data.payload);
receiver.reject(typeof evt.data.data.payload === 'string'
? new Error(evt.data.data.payload)
: evt.data.data.payload);
}

@@ -270,3 +281,4 @@ }

// navigated to another valid webpage and we should re-connect
if (_this._targetOrigin && _this._targetOrigin === '*' || _this._targetOrigin === evt.origin) {
if ((_this._targetOrigin && _this._targetOrigin === '*') ||
_this._targetOrigin === evt.origin) {
ChattyHost._debug('reconnecting to', evt.origin);

@@ -292,3 +304,3 @@ _this._port.close();

this._appendTo.appendChild(this.iframe);
return [2 /*return*/, this._connection = createConnection()];
return [2 /*return*/, (this._connection = createConnection())];
});

@@ -315,3 +327,4 @@ });

return false;
if (this._targetOrigin && !(this._targetOrigin === '*' || this._targetOrigin === evt.origin))
if (this._targetOrigin &&
!(this._targetOrigin === '*' || this._targetOrigin === evt.origin))
return false;

@@ -318,0 +331,0 @@ return true;

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Chatty = exports.ChattyHost = exports.ChattyClient = exports.ChattyHostBuilder = exports.ChattyClientBuilder = void 0;
var client_builder_1 = require("./client_builder");
var host_builder_1 = require("./host_builder");
var client_builder_2 = require("./client_builder");
exports.ChattyClientBuilder = client_builder_2.ChattyClientBuilder;
Object.defineProperty(exports, "ChattyClientBuilder", { enumerable: true, get: function () { return client_builder_2.ChattyClientBuilder; } });
var host_builder_2 = require("./host_builder");
exports.ChattyHostBuilder = host_builder_2.ChattyHostBuilder;
Object.defineProperty(exports, "ChattyHostBuilder", { enumerable: true, get: function () { return host_builder_2.ChattyHostBuilder; } });
var client_1 = require("./client");
exports.ChattyClient = client_1.ChattyClient;
Object.defineProperty(exports, "ChattyClient", { enumerable: true, get: function () { return client_1.ChattyClient; } });
var host_1 = require("./host");
exports.ChattyHost = host_1.ChattyHost;
Object.defineProperty(exports, "ChattyHost", { enumerable: true, get: function () { return host_1.ChattyHost; } });
__exportStar(require("./types"), exports);
/**

@@ -37,0 +55,0 @@ * @class Chatty

"use strict";
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
{
"name": "@looker/chatty",
"version": "2.3.0",
"version": "2.3.1",
"description": "A simple postMessage host / client channel manager.",

@@ -14,4 +14,4 @@ "main": "lib/index.js",

"engines": {
"node": ">=8.6.0",
"npm": ">=5.5.1"
"node": ">=16.16.0",
"npm": ">=8.18.0"
},

@@ -21,5 +21,5 @@ "scripts": {

"docs": "typedoc --mode file --out docs",
"lint": "tslint --project tsconfig.json --format stylish 'src/**/*.ts'",
"lint-fix": "tslint --fix --project tsconfig.json --format stylish 'src/**/*.ts'",
"start": "webpack-dev-server --config webpack-devserver.config.js --hot --inline --open --color --progress",
"lint": "eslint --format stylish 'src/**/*.ts'",
"lint-fix": "eslint --fix --project tsconfig.json --format stylish 'src/**/*.ts'",
"start": "webpack-dev-server --config webpack-devserver.config.js --hot --open --color --progress",
"prepare": "npm run build",

@@ -41,23 +41,28 @@ "prepublishOnly": "npm run test-once",

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/core": "^7.16.7",
"@looker/eslint-config-oss": "^1.7.21",
"@looker/eslint-plugin": "^1.0.0",
"@types/debug": "^4.1.5",
"@types/jasmine": "^2.8.16",
"babel-loader": "^8.1.0",
"jasmine-core": "^2.99.1",
"karma": "^4.4.1",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.2",
"karma-typescript": "^5.0.1",
"karma-typescript-es6-transform": "^5.0.1",
"ts-loader": "^4.3.1",
"tslint": "^5.20.1",
"tslint-config-standard": "^7.1.0",
"tslint-eslint-rules": "^4.1.1",
"tsutils": "^3.17.1",
"typedoc": "^0.15.8",
"typescript": "^3.8.3",
"typescript-tslint-plugin": "^0.3.1",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
"@types/jasmine": "^3.10.3",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/typescript-estree": "^5.9.1",
"babel-loader": "^8.2.3",
"eslint": "^8.13.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-testing-library": "^5.0.3",
"jasmine-core": "^4.0.0",
"karma": "^6.3.11",
"karma-chrome-launcher": "^3.1.0",
"karma-jasmine": "^4.0.1",
"karma-typescript": "^5.5.3",
"karma-typescript-es6-transform": "^5.5.3",
"prettier": "^2.4.1",
"ts-loader": "^9.2.6",
"tsutils": "^3.21.0",
"typedoc": "^0.22.10",
"typescript": "^4.5.4",
"typescript-tslint-plugin": "^1.0.1",
"webpack": "^5.66.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.3"
},

@@ -68,3 +73,26 @@ "dependencies": {

"es6-promise": "^4.2.8"
},
"eslintConfig": {
"extends": [
"@looker/eslint-config-oss"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-console": [
"error",
{
"allow": [
"info",
"warn",
"error"
]
}
],
"no-useless-constructor": "off"
}
},
"overrides": {
"remark-parse": "9.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc