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.4.0 to 1.4.1

5

dist/classy.js

@@ -735,3 +735,2 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.classy=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

},{"./core":10,"./getClass":17}],16:[function(_dereq_,module,exports){
var define = _dereq_('./define')

@@ -742,6 +741,8 @@ module.exports = function(config){

var define = _dereq_('./define')
//this refers to a Class
config = config || {}
config.extend = config.extend || this.alias
config.extend = config.extend || this.prototype.alias

@@ -748,0 +749,0 @@ return define(config)

2

package.json
{
"name": "classy",
"version": "1.4.0",
"version": "1.4.1",
"scripts": {

@@ -5,0 +5,0 @@ "build": "browserify src/index.js -s classy -o dist/classy.js",

@@ -1,2 +0,1 @@

var define = require('./define')

@@ -7,8 +6,10 @@ module.exports = function(config){

var define = require('./define')
//this refers to a Class
config = config || {}
config.extend = config.extend || this.alias
config.extend = config.extend || this.prototype.alias
return define(config)
}

@@ -127,3 +127,17 @@ /*

})
it('should work with extend being called on superclass', function(){
var Vehicle = root.define({
speed: 10
})
var Car = Vehicle.extend({
name: 'car'
})
var c = new Car()
expect(c instanceof Vehicle).toBe(true)
})
})

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