Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "classy", | ||
"version": "1.1.0", | ||
"description": "Smart classes for JavaScript code", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Radu Brehar", | ||
"license": "MIT" | ||
} | ||
"name" : "classy", | ||
"version" : "1.1.1", | ||
"devDependencies": { | ||
"browserify": "^3.44.2", | ||
"watchify": "^0.8.2", | ||
"karma": "^0.12.14", | ||
"karma-jasmine": "^0.1.5", | ||
"karma-chrome-launcher": "^0.1.3" | ||
}, | ||
"scripts": { | ||
"preinstall": "npm install -g browserify", | ||
"build" : "browserify src/index.js -s classy -o dist/classy.js", | ||
"watch" : "watchify src/index.js -s classy -o dist/ZippyClass.js", | ||
"dev" : "npm run build | npm run watch", | ||
"test" : "karma start", | ||
"server" : "python -m SimpleHTTPServer" | ||
}, | ||
"main": "index.js" | ||
} |
@@ -14,2 +14,4 @@ module.exports = function(){ | ||
if (!isFn && name == 'init'){ | ||
//if the superClass is not from the ZippyClass registry, | ||
//it means it is a simple function and we accept those as well | ||
if (!superClass.$superClass){ | ||
@@ -16,0 +18,0 @@ fn = superClass |
@@ -0,1 +1,11 @@ | ||
/* | ||
This file is part of the ZippyUI Framework | ||
Copyright (c) 2014 Radu Brehar <contact@zippyui.com> | ||
The source code is distributed under the terms of the MIT license. | ||
See https://github.com/zippyui/ZippyUI/blob/master/LICENCE | ||
*/ | ||
module.exports = function(){ | ||
@@ -12,5 +22,9 @@ | ||
/** | ||
* @class Zpy | ||
*/ | ||
/** | ||
* Copies all properties from source to destination | ||
* | ||
* copy({name: 'jon',age:5}, this); | ||
* Zpy.copy({name: 'jon',age:5}, this); | ||
* // => this will have the 'name' and 'age' properties set to 'jon' and 5 respectively | ||
@@ -41,3 +55,3 @@ * | ||
* | ||
* copyIf({name: 'jon',age:5}, {age:7}) | ||
* Zpy.copyIf({name: 'jon',age:5}, {age:7}) | ||
* // => { name: 'jon', age: 7} | ||
@@ -68,3 +82,3 @@ * | ||
* | ||
* copyAs({name: 'jon',age:5}) | ||
* Zpy.copyAs({name: 'jon',age:5}) | ||
* // => the resulting object will have the 'name' and 'age' properties set to 1 | ||
@@ -97,3 +111,3 @@ * | ||
* | ||
* copyList({name: 'jon',age:5, year: 2006}, {}, ['name','age']) | ||
* Zpy.copyList({name: 'jon',age:5, year: 2006}, {}, ['name','age']) | ||
* // => {name: 'jon', age: 5} | ||
@@ -134,3 +148,3 @@ * | ||
* | ||
* copyListIf({name: 'jon',age:5, year: 2006}, {age: 10}, ['name','age']) | ||
* Zpy.copyListIf({name: 'jon',age:5, year: 2006}, {age: 10}, ['name','age']) | ||
* // => {name: 'jon', age: 10} | ||
@@ -173,3 +187,3 @@ * | ||
* | ||
* copyKeys({name: 'jon',age:5, year: 2006, date: '2010/05/12'}, {}, {name:1 ,age: true, year: 'theYear'}) | ||
* Zpy.copyKeys({name: 'jon',age:5, year: 2006, date: '2010/05/12'}, {}, {name:1 ,age: true, year: 'theYear'}) | ||
* // => {name: 'jon', age: 5, theYear: 2006} | ||
@@ -215,3 +229,3 @@ * | ||
* | ||
* copyKeysIf({name: 'jon',age:5, year: 2006}, {aname: 'test'}, {name:'aname' ,age: true}) | ||
* Zpy.copyKeysIf({name: 'jon',age:5, year: 2006}, {aname: 'test'}, {name:'aname' ,age: true}) | ||
* // => {aname: 'test', age: 5} | ||
@@ -218,0 +232,0 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1575099
60
5705
1
1
212
5
3
1
5
3