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

classy

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classy - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.idea/.name

29

package.json
{
"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 @@ *

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