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

jss-extend

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-extend - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

4

changelog.md

@@ -0,1 +1,5 @@

## 6.0.0 / 2017-09-30
- support jss 9
## 5.0.0 / 2017-06-20

@@ -2,0 +6,0 @@

@@ -71,6 +71,10 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _isObservable = __webpack_require__(2);
var _isObservable2 = _interopRequireDefault(_isObservable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var isObject = function isObject(obj) {
return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj);
return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj) && !(0, _isObservable2['default'])(obj);
};

@@ -205,2 +209,50 @@

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var symbolObservable = __webpack_require__(3);
module.exports = function (fn) {
return Boolean(fn && fn[symbolObservable]);
};
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/* global window */
'use strict';
module.exports = __webpack_require__(4)(global || window || this);
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
/* 4 */
/***/ (function(module, exports) {
'use strict';
module.exports = function symbolObservablePonyfill(root) {
var result;
var Symbol = root.Symbol;
if (typeof Symbol === 'function') {
if (Symbol.observable) {
result = Symbol.observable;
} else {
result = Symbol('observable');
Symbol.observable = result;
}
} else {
result = '@@observable';
}
return result;
};
/***/ })

@@ -207,0 +259,0 @@ /******/ ])

2

dist/jss-extend.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssExtend=t():e.jssExtend=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof e.extend){if(n){var f=n.getRule(e.extend);if(f)if(f===t)(0,d.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",t);else if(f.options.parent){var i=f.options.parent.rules.raw[e.extend];r(i,t,n,o)}}}else if(Array.isArray(e.extend))for(var u=0;u<e.extend.length;u++)r(e.extend[u],t,n,o);else for(var c in e.extend)"extend"===c?r(e.extend.extend,t,n,o):s(e.extend[c])?(o[c]||(o[c]={}),r(e.extend[c],t,n,o[c])):o[c]=e.extend[c];for(var l in e)"extend"!==l&&(s(o[l])&&s(e[l])?r(e[l],t,n,o[l]):s(e[l])?o[l]=r(e[l],t,n):o[l]=e[l]);return o}function f(){function e(e,t,n){return e.extend?r(e,t,n):e}return{onProcessStyle:e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=f;var u=n(1),d=o(u),s=function(e){return e&&"object"===("undefined"==typeof e?"undefined":i(e))&&!Array.isArray(e)}},function(e,t,n){"use strict";var o=function(){};e.exports=o}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssExtend=t():e.jssExtend=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof e.extend){if(n){var i=n.getRule(e.extend);if(i)if(i===t)(0,s.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",t);else if(i.options.parent){var u=i.options.parent.rules.raw[e.extend];r(u,t,n,o)}}}else if(Array.isArray(e.extend))for(var f=0;f<e.extend.length;f++)r(e.extend[f],t,n,o);else for(var d in e.extend)"extend"===d?r(e.extend.extend,t,n,o):l(e.extend[d])?(o[d]||(o[d]={}),r(e.extend[d],t,n,o[d])):o[d]=e.extend[d];for(var c in e)"extend"!==c&&(l(o[c])&&l(e[c])?r(e[c],t,n,o[c]):l(e[c])?o[c]=r(e[c],t,n):o[c]=e[c]);return o}function i(){function e(e,t,n){return e.extend?r(e,t,n):e}return{onProcessStyle:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=i;var f=n(1),s=o(f),d=n(2),c=o(d),l=function(e){return e&&"object"===("undefined"==typeof e?"undefined":u(e))&&!Array.isArray(e)&&!(0,c.default)(e)}},function(e,t,n){"use strict";var o=function(){};e.exports=o},function(e,t,n){"use strict";var o=n(3);e.exports=function(e){return Boolean(e&&e[o])}},function(e,t,n){(function(t){"use strict";e.exports=n(4)(t||window||this)}).call(t,function(){return this}())},function(e,t){"use strict";e.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}}])});
//# sourceMappingURL=jss-extend.min.js.map

@@ -15,6 +15,10 @@ 'use strict';

var _isObservable = require('is-observable');
var _isObservable2 = _interopRequireDefault(_isObservable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var isObject = function isObject(obj) {
return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj);
return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj) && !(0, _isObservable2['default'])(obj);
};

@@ -21,0 +25,0 @@

@@ -17,2 +17,6 @@ 'use strict';

var _zenObservable = require('zen-observable');
var _zenObservable2 = _interopRequireDefault(_zenObservable);
var _index = require('./index');

@@ -24,2 +28,4 @@

/* eslint-disable no-underscore-dangle */
var settings = {

@@ -31,3 +37,3 @@ createGenerateClassName: function createGenerateClassName() {

}
}; /* eslint-disable no-underscore-dangle */
};

@@ -268,2 +274,20 @@ describe('jss-extend', function () {

});
describe('support observable value', function () {
var sheet = void 0;
beforeEach(function () {
sheet = jss.createStyleSheet({
a: {
width: new _zenObservable2['default'](function (observer) {
observer.next(1);
})
}
});
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n' + ' width: 1;\n' + '}');
});
});
});
{
"name": "jss-extend",
"description": "JSS plugin that enables inheritance",
"version": "5.0.0",
"version": "6.0.0",
"author": {

@@ -60,5 +60,5 @@ "name": "Oleg Slobodskoi",

"json-loader": "^0.5.4",
"jss": "^8.0.0",
"jss-expand": "^4.0.0",
"jss-nested": "^5.0.0",
"jss": "^9.0.0",
"jss-expand": "^5.0.0",
"jss-nested": "^6.0.0",
"karma": "^1.1.1",

@@ -80,3 +80,4 @@ "karma-benchmark": "^0.6.0",

"rimraf": "^2.5.4",
"webpack": "^1.12.2"
"webpack": "^1.12.2",
"zen-observable": "^0.6.0"
},

@@ -94,4 +95,5 @@ "peerDependencies": {

"dependencies": {
"is-observable": "^0.2.0",
"warning": "^3.0.0"
}
}

Sorry, the diff of this file is not supported yet

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