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

Class

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Class - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

lib/class.js

@@ -12,5 +12,6 @@ /*!

*/
var Class = module.exports = (function (undefined) {
var Class = module.exports = (function(slice) {
return {
varsion: "0.1.1",
create: create,

@@ -124,3 +125,3 @@ Methods: {

function merge(array, args) {
array = Array.prototype.slice.call(array, 0);
array = slice.call(array, 0);
return update(array, args);

@@ -133,3 +134,3 @@ }

var args = Array.prototype.slice.call(args, 1);
var args = slice.call(args, 1);
return function() {

@@ -155,2 +156,2 @@ var a = merge(args, arguments);

}());
}(Array.prototype.slice));
{
"name": "Class",
"author": "Firejune (http://firejune.com/)",
"version": "0.1.0",
"version": "0.1.1",
"description": "Port of Prototype.js inheritance implementation for Node.js.",
"homepage": "http://github.com/firejune/class",
"keywords": [
"prototype",
"prototypejs",

@@ -9,0 +10,0 @@ "inheritance",

@@ -23,3 +23,3 @@ # Class

$ git clone https://github.com/firejune/class.git
$ git clone git://github.com/firejune/class.git

@@ -40,3 +40,3 @@ NPM

speak: function() {
alert(this.name + " says: " + this.sound + "!");
console.log(this.name + " says: " + this.sound + "!");
}

@@ -54,7 +54,7 @@ });

ringneck.speak();
//-> alerts "Ringneck says: hissssssssss!"
//-> "Ringneck says: hissssssssss!"
var rattlesnake = new Snake("Rattler");
rattlesnake.speak();
//-> alerts "Rattler says: hissssssssss!"
//-> "Rattler says: hissssssssss!"

@@ -61,0 +61,0 @@

@@ -23,6 +23,6 @@ var Class = require('./lib/class');

ringneck.speak();
//-> alerts "Ringneck says: hissssssssss!"
//-> "Ringneck says: hissssssssss!"
var rattlesnake = new Snake("Rattler");
rattlesnake.speak();
//-> alerts "Rattler says: hissssssssss!"
//-> "Rattler says: hissssssssss!"
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