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

calculated-cached-properties

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculated-cached-properties - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

bower.json
{
"name": "calculated-cached-properties",
"description": "CalculatedCachedProperties allows properties to have values calculated by a function, and then cached. You can then manually invalidate (clean) the cache for one or more (or all) properties, forcing the function to be invoked and recalculate next time the property is accessed. You can also set the value of a property manually. Undefined / null etc are all valid property values. Works with POJSOs, JS constructors and CoffeeScript classes (i.e `MyClass extends CalculatedCachedProperties`, and then just call `super` constructor). A spinoff from uBerscore library. Docs will follow, see the specs till then :-)",
"version": "0.2.1",
"version": "0.2.2",
"main": [

@@ -6,0 +6,0 @@ "build/dev/CalculatedCachedProperties.js",

@@ -5,3 +5,3 @@ /**

* CalculatedCachedProperties allows properties to have values calculated by a function, and then cached. You can then manually invalidate (clean) the cache for one or more (or all) properties, forcing the function to be invoked and recalculate next time the property is accessed. You can also set the value of a property manually. Undefined / null etc are all valid property values. Works with POJSOs, JS constructors and CoffeeScript classes (i.e `MyClass extends CalculatedCachedProperties`, and then just call `super` constructor). A spinoff from uBerscore library. Docs will follow, see the specs till then :-)
* Version 0.2.1 - Compiled on 2015-06-29 16:05:41
* Version 0.2.2 - Compiled on 2015-07-17 10:44:53
* Repository git://github.com/anodynos/calculated-cached-properties

@@ -37,3 +37,3 @@ * Copyright(c) 2015 Angelos Pikoulas <agelos.pikoulas@gmail.com>

var VERSION = '0.2.1'; // injected by urequire-rc-inject-version
var VERSION = '0.2.2'; // injected by urequire-rc-inject-version

@@ -161,4 +161,6 @@ var CalculatedCachedProperties, _, __slice = [].slice;

});
function CalculatedCachedProperties(options) {
this._CCP_defineCalcProperties(options);
function CalculatedCachedProperties() {
var args, _ref;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
this._CCP_defineCalcProperties((_ref = args[args.length - 1]) != null ? _ref.CCP_options : void 0);
}

@@ -184,2 +186,5 @@ CalculatedCachedProperties.prototype._CCP_initCache = function () {

var cPropFn, cPropName, _ref;
if (options == null) {
options = {};
}
this.constructor.isDebug = function (lev) {

@@ -243,2 +248,5 @@ return options.debugLevel >= lev;

cleanArgs = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (!_.isFunction(this.constructor.isDebug)) {
this._CCP_defineCalcProperties();
}
if (cleanArgs.length === 0) {

@@ -245,0 +253,0 @@ cleanArgs = _.keys(this.CCP_allCalcProperties || this.CCP_getAllCalcProperties());

{
"name": "calculated-cached-properties",
"description": "CalculatedCachedProperties allows properties to have values calculated by a function, and then cached. You can then manually invalidate (clean) the cache for one or more (or all) properties, forcing the function to be invoked and recalculate next time the property is accessed. You can also set the value of a property manually. Undefined / null etc are all valid property values. Works with POJSOs, JS constructors and CoffeeScript classes (i.e `MyClass extends CalculatedCachedProperties`, and then just call `super` constructor). A spinoff from uBerscore library. Docs will follow, see the specs till then :-)",
"version": "0.2.1",
"version": "0.2.2",
"homepage": "https://github.com/anodynos/calculated-cached-properties",

@@ -6,0 +6,0 @@ "author": {

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