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.4.0 to 0.5.0

ngx-freshchat-0.5.0.tgz

28

bundles/ngx-freshchat.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define('ngx-freshchat', ['exports', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
(global = global || self, factory(global['ngx-freshchat'] = {}, global.ng.core, global.rxjs, global.rxjs.operators));
}(this, (function (exports, i0, rxjs, operators) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ngx-freshchat"] = {}, global.ng.core, global.rxjs, global.rxjs.operators));
})(this, (function (exports, i0, rxjs, operators) { 'use strict';
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
var NgxFreshChatService = /** @class */ (function () {

@@ -204,3 +224,3 @@ function NgxFreshChatService() {

}());
NgxFreshChatService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NgxFreshChatService_Factory() { return new NgxFreshChatService(); }, token: NgxFreshChatService, providedIn: "root" });
NgxFreshChatService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NgxFreshChatService_Factory() { return new NgxFreshChatService(); }, token: NgxFreshChatService, providedIn: "root" });
NgxFreshChatService.decorators = [

@@ -240,3 +260,3 @@ { type: i0.Injectable, args: [{

})));
}));
//# sourceMappingURL=ngx-freshchat.umd.js.map

2

bundles/ngx-freshchat.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-freshchat",["exports","@angular/core","rxjs","rxjs/operators"],e):e((t=t||self)["ngx-freshchat"]={},t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,n){"use strict";var o=function(){function t(){}return t.prototype.init=function(t){var e=this;return this.loadScript("https://wchat.freshchat.com/js/widget.js").pipe(n.first(),n.flatMap((function(r){return e.initWidget(t)})))},t.prototype.initWidget=function(t){var e=this;return new r.Observable((function(r){e.getWidget().on("widget:loaded",(function(t){return r.next(t)})),e.getWidget().init(t)}))},t.prototype.onUserCreate=function(){var t=this;return new r.Observable((function(e){t.getWidget().on("user:created",(function(t){200!==t.status?e.error(t.status):e.next(t.data||null)}))}))},t.prototype.unreadCount=function(){var t=this;return new r.Observable((function(e){t.getWidget().on("unreadCount:notify",(function(t){e.next(t.count||null)}))}))},t.prototype.getUser=function(){var t=this;return new r.Observable((function(e){t.getWidget().user.get((function(t){200!==t.status?e.error(t.status):e.next(t.data)}))}))},t.prototype.setUserProperties=function(t){var e=this;return new r.Observable((function(r){e.getWidget().user.setProperties(t,(function(t){200!==t.status?r.error(t.status):r.next(t.data||null)}))}))},t.prototype.updateUser=function(t){this.getWidget().user.update(t)},t.prototype.clearUser=function(){var t=this;return new r.Observable((function(e){t.getWidget().user.clear((function(t){200!==t.status?e.error(t.status):e.next(t.data||null)}))}))},t.prototype.isOpen=function(){return this.getWidget().isOpen()},t.prototype.open=function(t){this.getWidget().open(t)},t.prototype.close=function(){this.getWidget().close()},t.prototype.track=function(t,e){this.getWidget().track(t,e)},t.prototype.setTags=function(t){this.getWidget().setTags(t)},t.prototype.setLocale=function(t){this.getWidget().setLocale(t)},t.prototype.destroy=function(){this.getWidget().destroy()},t.prototype.isInitialized=function(){return this.getWidget().isInitialized()},t.prototype.getWidget=function(){return window.fcWidget},t.prototype.loadScript=function(t){return new r.Observable((function(e){var r=document.createElement("script");r.type="text/javascript",r.src=t,r.onload=function(){e.next(t),e.complete()},r.onerror=function(){return e.error("Couldn't load "+t)},document.getElementsByTagName("body")[0].appendChild(r)}))},t}();o.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new o},token:o,providedIn:"root"}),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[]};var i=function(){};i.decorators=[{type:e.NgModule,args:[{imports:[],providers:[o],declarations:[],exports:[]}]}],t.NgxFreshChatModule=i,t.NgxFreshChatService=o,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-freshchat",["exports","@angular/core","rxjs","rxjs/operators"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-freshchat"]={},t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var i=o(e),s=function(){function t(){}return t.prototype.init=function(t){var e=this;return this.loadScript("https://wchat.freshchat.com/js/widget.js").pipe(n.first(),n.flatMap((function(r){return e.initWidget(t)})))},t.prototype.initWidget=function(t){var e=this;return new r.Observable((function(r){e.getWidget().on("widget:loaded",(function(t){return r.next(t)})),e.getWidget().init(t)}))},t.prototype.onUserCreate=function(){var t=this;return new r.Observable((function(e){t.getWidget().on("user:created",(function(t){200!==t.status?e.error(t.status):e.next(t.data||null)}))}))},t.prototype.unreadCount=function(){var t=this;return new r.Observable((function(e){t.getWidget().on("unreadCount:notify",(function(t){e.next(t.count||null)}))}))},t.prototype.getUser=function(){var t=this;return new r.Observable((function(e){t.getWidget().user.get((function(t){200!==t.status?e.error(t.status):e.next(t.data)}))}))},t.prototype.setUserProperties=function(t){var e=this;return new r.Observable((function(r){e.getWidget().user.setProperties(t,(function(t){200!==t.status?r.error(t.status):r.next(t.data||null)}))}))},t.prototype.updateUser=function(t){this.getWidget().user.update(t)},t.prototype.clearUser=function(){var t=this;return new r.Observable((function(e){t.getWidget().user.clear((function(t){200!==t.status?e.error(t.status):e.next(t.data||null)}))}))},t.prototype.isOpen=function(){return this.getWidget().isOpen()},t.prototype.open=function(t){this.getWidget().open(t)},t.prototype.close=function(){this.getWidget().close()},t.prototype.track=function(t,e){this.getWidget().track(t,e)},t.prototype.setTags=function(t){this.getWidget().setTags(t)},t.prototype.setLocale=function(t){this.getWidget().setLocale(t)},t.prototype.destroy=function(){this.getWidget().destroy()},t.prototype.isInitialized=function(){return this.getWidget().isInitialized()},t.prototype.getWidget=function(){return window.fcWidget},t.prototype.loadScript=function(t){return new r.Observable((function(e){var r=document.createElement("script");r.type="text/javascript",r.src=t,r.onload=function(){e.next(t),e.complete()},r.onerror=function(){return e.error("Couldn't load "+t)},document.getElementsByTagName("body")[0].appendChild(r)}))},t}();s.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var u=function(){};u.decorators=[{type:e.NgModule,args:[{imports:[],providers:[s],declarations:[],exports:[]}]}],t.NgxFreshChatModule=u,t.NgxFreshChatService=s,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-freshchat.umd.min.js.map

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

import { ɵɵdefineInjectable, Injectable, NgModule } from '@angular/core';
import * as i0 from '@angular/core';
import { Injectable, NgModule } from '@angular/core';
import { Observable } from 'rxjs';

@@ -193,3 +194,3 @@ import { first, flatMap } from 'rxjs/operators';

}
NgxFreshChatService.ɵprov = ɵɵdefineInjectable({ factory: function NgxFreshChatService_Factory() { return new NgxFreshChatService(); }, token: NgxFreshChatService, providedIn: "root" });
NgxFreshChatService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NgxFreshChatService_Factory() { return new NgxFreshChatService(); }, token: NgxFreshChatService, providedIn: "root" });
NgxFreshChatService.decorators = [

@@ -196,0 +197,0 @@ { type: Injectable, args: [{

{
"name": "ngx-freshchat",
"version": "0.4.0",
"version": "0.5.0",
"peerDependencies": {
"@angular/common": "^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
"@angular/core": "^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0"
"@angular/common": "^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"@angular/core": "^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0"
},

@@ -8,0 +8,0 @@ "dependencies": {

@@ -53,3 +53,3 @@ # NgxFreshchat

<tr>
<td align="center"><a href="https://www.nearit.com/"><img src="https://avatars3.githubusercontent.com/u/7868362?v=4" width="100px;" alt="Claudio Suardi"/><br /><sub><b>Claudio Suardi</b></sub></a><br /><a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=beyondsanity" title="Code">💻</a> <a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=beyondsanity" title="Documentation">📖</a> <a href="#review-beyondsanity" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://www.officinedigitaliitaliane.it/"><img src="https://avatars3.githubusercontent.com/u/7868362?v=4" width="100px;" alt="Claudio Suardi"/><br /><sub><b>Claudio Suardi</b></sub></a><br /><a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=beyondsanity" title="Code">💻</a> <a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=beyondsanity" title="Documentation">📖</a> <a href="#review-beyondsanity" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="http://www.willpoulson.co.uk"><img src="https://avatars0.githubusercontent.com/u/12980659?v=4" width="100px;" alt="Will Poulson"/><br /><sub><b>Will Poulson</b></sub></a><br /><a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=WillPoulson" title="Code">💻</a> <a href="https://github.com/beyondsanity/ngx-freshchat/commits?author=WillPoulson" title="Documentation">📖</a></td>

@@ -56,0 +56,0 @@ </tr>

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