cla6-base
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "cla6-base", | ||
"description": "Base plugin for Cla6.js", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"main": "client/cla6-base.js", | ||
@@ -10,5 +10,2 @@ "repository": { | ||
}, | ||
"dependencies": { | ||
"cla6": "~1.3.0" | ||
}, | ||
"devDependencies": { | ||
@@ -18,2 +15,3 @@ "browserify": "~9.0.0", | ||
"chai-spies": "~0.5.0", | ||
"cla6": "~1.4.0", | ||
"mocha": "~2.1.0", | ||
@@ -20,0 +18,0 @@ "uglify-js": "~2.4.0" |
@@ -6,19 +6,18 @@ (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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){ | ||
},{"..":2}],2:[function(require,module,exports){ | ||
(function (global){ | ||
var Cla6 = (typeof window !== "undefined" ? window.Cla6 : typeof global !== "undefined" ? global.Cla6 : null); | ||
var caller; | ||
var base; | ||
Object.defineProperty(Cla6, 'base', { | ||
configurable: true, | ||
enumerable: true, | ||
var initialize = function(Cla6) { | ||
Object.defineProperty(Cla6, 'base', { | ||
configurable: true, | ||
enumerable: true, | ||
get: function() { | ||
if (arguments.callee.caller == caller) | ||
return base; | ||
} | ||
}); | ||
get: function() { | ||
if (arguments.callee.caller == caller) | ||
return base; | ||
} | ||
}); | ||
}; | ||
function Base(descriptors, Parent) { | ||
var manipulate = function(descriptors, Parent) { | ||
Object.keys(descriptors).filter(function(k) { | ||
@@ -32,3 +31,3 @@ return typeof descriptors[k].value == 'function'; | ||
}); | ||
} | ||
}; | ||
@@ -66,4 +65,6 @@ var wrapMethod = function(method, superMethod) { | ||
module.exports = Base; | ||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | ||
module.exports = { | ||
initialize: initialize, | ||
manipulate: manipulate | ||
}; | ||
},{}]},{},[1]); |
@@ -1,1 +0,1 @@ | ||
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){var Cla6Base=require("..");Cla6.use(Cla6Base)},{"..":2}],2:[function(require,module,exports){(function(global){var Cla6=typeof window!=="undefined"?window.Cla6:typeof global!=="undefined"?global.Cla6:null;var caller;var base;Object.defineProperty(Cla6,"base",{configurable:true,enumerable:true,get:function(){if(arguments.callee.caller==caller)return base}});function Base(descriptors,Parent){Object.keys(descriptors).filter(function(k){return typeof descriptors[k].value=="function"}).forEach(function(k){var descriptor=descriptors[k];var superMethod=Parent.prototype[k];descriptor.value=wrapMethod(descriptor.value,superMethod)})}var wrapMethod=function(method,superMethod){return function(){var result;var restore=defineBase(this,method,superMethod);try{result=method.apply(this,arguments)}finally{restore()}return result}};var defineBase=function(obj,method,superMethod){var oldCaller=caller;var oldBase=base;caller=method;if(superMethod==null)base=undefined;else base=superMethod.bind(obj);return function(){caller=oldCaller;base=oldBase}};module.exports=Base}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}]},{},[1]); | ||
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){var Cla6Base=require("..");Cla6.use(Cla6Base)},{"..":2}],2:[function(require,module,exports){var caller;var base;var initialize=function(Cla6){Object.defineProperty(Cla6,"base",{configurable:true,enumerable:true,get:function(){if(arguments.callee.caller==caller)return base}})};var manipulate=function(descriptors,Parent){Object.keys(descriptors).filter(function(k){return typeof descriptors[k].value=="function"}).forEach(function(k){var descriptor=descriptors[k];var superMethod=Parent.prototype[k];descriptor.value=wrapMethod(descriptor.value,superMethod)})};var wrapMethod=function(method,superMethod){return function(){var result;var restore=defineBase(this,method,superMethod);try{result=method.apply(this,arguments)}finally{restore()}return result}};var defineBase=function(obj,method,superMethod){var oldCaller=caller;var oldBase=base;caller=method;if(superMethod==null)base=undefined;else base=superMethod.bind(obj);return function(){caller=oldCaller;base=oldBase}};module.exports={initialize:initialize,manipulate:manipulate}},{}]},{},[1]); |
@@ -1,17 +0,17 @@ | ||
var Cla6 = require('cla6'); | ||
var caller; | ||
var base; | ||
Object.defineProperty(Cla6, 'base', { | ||
configurable: true, | ||
enumerable: true, | ||
var initialize = function(Cla6) { | ||
Object.defineProperty(Cla6, 'base', { | ||
configurable: true, | ||
enumerable: true, | ||
get: function() { | ||
if (arguments.callee.caller == caller) | ||
return base; | ||
} | ||
}); | ||
get: function() { | ||
if (arguments.callee.caller == caller) | ||
return base; | ||
} | ||
}); | ||
}; | ||
function Base(descriptors, Parent) { | ||
var manipulate = function(descriptors, Parent) { | ||
Object.keys(descriptors).filter(function(k) { | ||
@@ -25,3 +25,3 @@ return typeof descriptors[k].value == 'function'; | ||
}); | ||
} | ||
}; | ||
@@ -59,2 +59,5 @@ var wrapMethod = function(method, superMethod) { | ||
module.exports = Base; | ||
module.exports = { | ||
initialize: initialize, | ||
manipulate: manipulate | ||
}; |
{ | ||
"name": "cla6-base", | ||
"description": "Base plugin for Cla6.js", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"main": "lib/base.js", | ||
@@ -10,18 +10,7 @@ "repository": { | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"browserify-shim" | ||
] | ||
}, | ||
"browserify-shim": { | ||
"cla6": "global:Cla6" | ||
}, | ||
"dependencies": { | ||
"cla6": "~1.3.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "~9.0.0", | ||
"browserify-shim": "~3.8.0", | ||
"chai": "~2.1.0", | ||
"chai-spies": "~0.5.0", | ||
"cla6": "~1.4.0", | ||
"mocha": "~2.1.0", | ||
@@ -28,0 +17,0 @@ "uglify-js": "~2.4.0" |
0
239
10015
- Removedcla6@~1.3.0
- Removedcla6@1.3.1(transitive)