@platform/react.ssr
Version:
A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.
1 lines • 3.36 kB
JSON
{"id":"cnRC","dependencies":[{"name":"/Users/phil/code/@platform/code/react.ssr/sample/ui/.uiharness/package.json","includedInParent":true,"mtime":1567548362275},{"name":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/package.json","includedInParent":true,"mtime":1566893276463},{"name":"tslib","loc":{"line":2,"column":25},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/_esm5/internal/operators/throttle.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/tslib/tslib.es6.js"},{"name":"../OuterSubscriber","loc":{"line":3,"column":32},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/_esm5/internal/operators/throttle.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":4,"column":34},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/_esm5/internal/operators/throttle.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.throttle=o,exports.defaultThrottleConfig=void 0;var t=i(require(\"tslib\")),e=require(\"../OuterSubscriber\"),r=require(\"../util/subscribeToResult\");function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e.default=t,e}var n={leading:!0,trailing:!1};function o(t,e){return void 0===e&&(e=n),function(r){return r.lift(new s(t,e.leading,e.trailing))}}exports.defaultThrottleConfig=n;var s=function(){function t(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector,this.leading,this.trailing))},t}(),l=function(e){function i(t,r,i,n){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=r,o._leading=i,o._trailing=n,o._hasValue=!1,o}return t.__extends(i,e),i.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},i.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},i.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=(0,r.subscribeToResult)(this,e))},i.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}},i.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},i.prototype.notifyNext=function(t,e,r,i,n){this.throttlingDone()},i.prototype.notifyComplete=function(){this.throttlingDone()},i}(e.OuterSubscriber);"},"sourceMaps":null,"error":null,"hash":"beaad1d6fc4a17f9c0759e068f3cb846","cacheData":{"env":{}}}