@theme-ui/preset-base
Advanced tools
Comparing version 0.3.0 to 0.3.2-alpha.10
@@ -1,50 +0,19 @@ | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
return obj; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return target; | ||
}; | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var heading = { | ||
@@ -86,18 +55,18 @@ color: 'text', | ||
}, | ||
h1: _objectSpread2({}, heading, { | ||
h1: _extends({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h2: _objectSpread2({}, heading, { | ||
h2: _extends({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h3: _objectSpread2({}, heading, { | ||
h3: _extends({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h4: _objectSpread2({}, heading, { | ||
h4: _extends({}, heading, { | ||
fontSize: 2 | ||
}), | ||
h5: _objectSpread2({}, heading, { | ||
h5: _extends({}, heading, { | ||
fontSize: 1 | ||
}), | ||
h6: _objectSpread2({}, heading, { | ||
h6: _extends({}, heading, { | ||
fontSize: 0 | ||
@@ -104,0 +73,0 @@ }), |
@@ -1,50 +0,19 @@ | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
return obj; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return target; | ||
}; | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var heading = { | ||
@@ -86,18 +55,18 @@ color: 'text', | ||
}, | ||
h1: _objectSpread2({}, heading, { | ||
h1: _extends({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h2: _objectSpread2({}, heading, { | ||
h2: _extends({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h3: _objectSpread2({}, heading, { | ||
h3: _extends({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h4: _objectSpread2({}, heading, { | ||
h4: _extends({}, heading, { | ||
fontSize: 2 | ||
}), | ||
h5: _objectSpread2({}, heading, { | ||
h5: _extends({}, heading, { | ||
fontSize: 1 | ||
}), | ||
h6: _objectSpread2({}, heading, { | ||
h6: _extends({}, heading, { | ||
fontSize: 0 | ||
@@ -104,0 +73,0 @@ }), |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.presetBase = {}))); | ||
(global = global || self, factory(global.presetBase = {})); | ||
}(this, (function (exports) { | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
return obj; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return target; | ||
}; | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var heading = { | ||
@@ -91,18 +60,18 @@ color: 'text', | ||
}, | ||
h1: _objectSpread2({}, heading, { | ||
h1: _extends({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h2: _objectSpread2({}, heading, { | ||
h2: _extends({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h3: _objectSpread2({}, heading, { | ||
h3: _extends({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h4: _objectSpread2({}, heading, { | ||
h4: _extends({}, heading, { | ||
fontSize: 2 | ||
}), | ||
h5: _objectSpread2({}, heading, { | ||
h5: _extends({}, heading, { | ||
fontSize: 1 | ||
}), | ||
h6: _objectSpread2({}, heading, { | ||
h6: _extends({}, heading, { | ||
fontSize: 0 | ||
@@ -109,0 +78,0 @@ }), |
{ | ||
"name": "@theme-ui/preset-base", | ||
"version": "0.3.0", | ||
"version": "0.3.2-alpha.10+80ad9af6", | ||
"main": "dist/index.js", | ||
@@ -16,3 +16,3 @@ "module": "dist/index.esm.js", | ||
}, | ||
"gitHead": "7663897ec671e1ff66b0d4ef946611dd57f3bb99" | ||
"gitHead": "80ad9af6483a680fb703d5ebd7b8564d06e7d6c7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34423
14
654
2