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

ngx-freshchat

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-freshchat - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

ngx-freshchat-0.1.1.tgz

4

bundles/ngx-freshchat.umd.js

@@ -261,3 +261,3 @@ (function (global, factory) {

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -270,3 +270,3 @@ * @return {?}

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -273,0 +273,0 @@ * @return {?}

@@ -17,2 +17,2 @@ /**

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZyZXNoY2hhdC1saWIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWZyZXNoY2hhdC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtZnJlc2hjaGF0LWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFTbEUsTUFBTSxPQUFPLGtCQUFrQjs7O1lBTjlCLFFBQVEsU0FBQztnQkFDUixPQUFPLEVBQUUsRUFBRTtnQkFDWCxTQUFTLEVBQUUsQ0FBRSxtQkFBbUIsQ0FBRTtnQkFDbEMsWUFBWSxFQUFFLEVBQUU7Z0JBQ2hCLE9BQU8sRUFBRSxFQUFFO2FBQ1oiLCJzb3VyY2VzQ29udGVudCI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Iuc2VydmljZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtdLFxuICBwcm92aWRlcnM6IFsgTmd4RnJlc2hDaGF0U2VydmljZSBdLFxuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBleHBvcnRzOiBbXVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hGcmVzaENoYXRNb2R1bGUgeyB9XG4iXX0=

@@ -194,3 +194,3 @@ /**

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -299,2 +299,2 @@ * @return {?}

/** @nocollapse */ NgxFreshChatService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgxFreshChatService_Factory() { return new NgxFreshChatService(); }, token: NgxFreshChatService, providedIn: "root" });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZyZXNoY2hhdC1saWIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mcmVzaGNoYXQvIiwic291cmNlcyI6WyJsaWIvbmd4LWZyZXNoY2hhdC1saWIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsVUFBVSxFQUFZLE1BQU0sTUFBTSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7O0FBRWhELHVCQVlDOzs7SUFYQyx3QkFBSzs7SUFDTCx3QkFBSzs7SUFDTCwwQkFBTzs7SUFDUCx3QkFBSzs7SUFDTCx5QkFBTTs7SUFDTix5QkFBTTs7SUFDTiwyQkFBUTs7SUFDUiw2QkFBVTs7SUFDViwyQkFBUTs7SUFDUixpQ0FBYzs7SUFDZCxzQ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wdCc7XG4gICAgICBzY3JpcHRFbGVtZW50LnNyYyA9IHNyYztcbiAgICAgIHNjcmlwdEVsZW1lbnQub25sb2FkID0gKCkgPT4ge1xuICAgICAgICAgIG9ic2VydmVyLm5leHQoc3JjKTtcbiAgICAgICAgICBvYnNlcnZlci5jb21wbGV0ZSgpO1xuICAgICAgfTtcbiAgICAgIHNjcmlwdEVsZW1lbnQub25lcnJvciA9ICgpID0+IG9ic2VydmVyLmVycm9yKCdDb3VsZG5cXCd0IGxvYWQgJyArIHNyYyk7XG4gICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnYm9keScpWzBdLmFwcGVuZENoaWxkKHNjcmlwdEVsZW1lbnQpO1xuICAgIH0pO1xuICB9XG5cbn1cblxuLy8gVE9ETzogZXZlbnRzXG4vLyBUT0RPOiBtZXNzZW5nZXIgQVBJXG5cbiJdfQ==

@@ -21,2 +21,2 @@ /**

export { NgxFreshChatModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZyZXNoY2hhdC1saWIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWZyZXNoY2hhdC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtZnJlc2hjaGF0LWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHbEU7SUFBQTtJQU1rQyxDQUFDOztnQkFObEMsUUFBUSxTQUFDO29CQUNSLE9BQU8sRUFBRSxFQUFFO29CQUNYLFNBQVMsRUFBRSxDQUFFLG1CQUFtQixDQUFFO29CQUNsQyxZQUFZLEVBQUUsRUFBRTtvQkFDaEIsT0FBTyxFQUFFLEVBQUU7aUJBQ1o7O0lBQ2lDLHl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1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE5neEZyZXNoQ2hhdFNlcnZpY2UgfSBmcm9tICcuL25neC1mcmVzaGNoYXQtbGliLnNlcnZpY2UnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXSxcbiAgcHJvdmlkZXJzOiBbIE5neEZyZXNoQ2hhdFNlcnZpY2UgXSxcbiAgZGVjbGFyYXRpb25zOiBbXSxcbiAgZXhwb3J0czogW11cbn0pXG5leHBvcnQgY2xhc3MgTmd4RnJlc2hDaGF0TW9kdWxlIHsgfVxuIl19

@@ -287,3 +287,3 @@ /**

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -296,3 +296,3 @@ * @return {?}

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -475,2 +475,2 @@ * @return {?}

export { NgxFreshChatService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZyZXNoY2hhdC1saWIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mcmVzaGNoYXQvIiwic291cmNlcyI6WyJsaWIvbmd4LWZyZXNoY2hhdC1saWIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsVUFBVSxFQUFZLE1BQU0sTUFBTSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7O0FBRWhELHVCQVlDOzs7SUFYQyx3QkFBSzs7SUFDTCx3QkFBSzs7SUFDTCwwQk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50KCdzY3JpcHQnKTtcbiAgICAgIHNjcmlwdEVsZW1lbnQudHlwZSA9ICd0ZXh0L2phdmFzY3JpcHQnO1xuICAgICAgc2NyaXB0RWxlbWVudC5zcmMgPSBzcmM7XG4gICAgICBzY3JpcHRFbGVtZW50Lm9ubG9hZCA9ICgpID0+IHtcbiAgICAgICAgICBvYnNlcnZlci5uZXh0KHNyYyk7XG4gICAgICAgICAgb2JzZXJ2ZXIuY29tcGxldGUoKTtcbiAgICAgIH07XG4gICAgICBzY3JpcHRFbGVtZW50Lm9uZXJyb3IgPSAoKSA9PiBvYnNlcnZlci5lcnJvcignQ291bGRuXFwndCBsb2FkICcgKyBzcmMpO1xuICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2JvZHknKVswXS5hcHBlbmRDaGlsZChzY3JpcHRFbGVtZW50KTtcbiAgICB9KTtcbiAgfVxuXG59XG5cbi8vIFRPRE86IGV2ZW50c1xuLy8gVE9ETzogbWVzc2VuZ2VyIEFQSVxuXG4iXX0=

@@ -166,3 +166,3 @@ import { Injectable, ɵɵdefineInjectable, NgModule } from '@angular/core';

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -169,0 +169,0 @@ * @return {?}

@@ -259,3 +259,3 @@ import { Injectable, ɵɵdefineInjectable, NgModule } from '@angular/core';

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -268,3 +268,3 @@ * @return {?}

* @author beyondsanity
* @param {?} payload Optional - parameters including channel id or name.
* @param {?=} payload Optional - parameters including channel id or name.
* The replyText parameter can be used to set up custom text in the text area of the widget.

@@ -271,0 +271,0 @@ * @return {?}

@@ -56,3 +56,3 @@ import { FCInitObject, FCUser } from './models';

*/
open(payload: {
open(payload?: {
name?: string;

@@ -59,0 +59,0 @@ channelId?: string;

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

{"__symbolic":"module","version":4,"metadata":{"NgxFreshChatService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"init":[{"__symbolic":"method"}],"initWidget":[{"__symbolic":"method"}],"onUserCreate":[{"__symbolic":"method"}],"getUser":[{"__symbolic":"method"}],"setUserProperties":[{"__symbolic":"method"}],"updateUser":[{"__symbolic":"method"}],"clearUser":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"track":[{"__symbolic":"method"}],"setTags":[{"__symbolic":"method"}],"setLocale":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"isInitialized":[{"__symbolic":"method"}],"getWidget":[{"__symbolic":"method"}],"loadScript":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgxFreshChatModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[],"providers":[{"__symbolic":"reference","name":"NgxFreshChatService"}],"declarations":[],"exports":[]}]}],"members":{}},"FCInitObject":{"__symbolic":"interface"},"FCUser":{"__symbolic":"interface"}},"origins":{"NgxFreshChatService":"./lib/ngx-freshchat-lib.service","NgxFreshChatModule":"./lib/ngx-freshchat-lib.module","FCInitObject":"./lib/models","FCUser":"./lib/models"},"importAs":"ngx-freshchat"}
{"__symbolic":"module","version":4,"metadata":{"NgxFreshChatService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"init":[{"__symbolic":"method"}],"initWidget":[{"__symbolic":"method"}],"onUserCreate":[{"__symbolic":"method"}],"getUser":[{"__symbolic":"method"}],"setUserProperties":[{"__symbolic":"method"}],"updateUser":[{"__symbolic":"method"}],"clearUser":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"track":[{"__symbolic":"method"}],"setTags":[{"__symbolic":"method"}],"setLocale":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"isInitialized":[{"__symbolic":"method"}],"getWidget":[{"__symbolic":"method"}],"loadScript":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgxFreshChatModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"providers":[{"__symbolic":"reference","name":"NgxFreshChatService"}],"declarations":[],"exports":[]}]}],"members":{}},"FCInitObject":{"__symbolic":"interface"},"FCUser":{"__symbolic":"interface"}},"origins":{"NgxFreshChatService":"./lib/ngx-freshchat-lib.service","NgxFreshChatModule":"./lib/ngx-freshchat-lib.module","FCInitObject":"./lib/models","FCUser":"./lib/models"},"importAs":"ngx-freshchat"}
{
"name": "ngx-freshchat",
"version": "0.1.1",
"version": "0.1.2",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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