New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/src-foundations

Package Overview
Dependencies
Maintainers
22
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/src-foundations - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

50

dist/foundations.esm.js

@@ -45,40 +45,2 @@ var fontSizes = [12, 15, 17, 20, 24, 28, 34, 42, 50, 70];

function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
function _iterableToArrayLimit(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
// https://stackoverflow.com/a/49725198/2118700

@@ -128,12 +90,2 @@

var _tweakAndBreakpoints$ = tweakAndBreakpoints.map(minWidth),
_tweakAndBreakpoints$2 = _slicedToArray(_tweakAndBreakpoints$, 7),
mobileMedium = _tweakAndBreakpoints$2[0],
mobileLandscape = _tweakAndBreakpoints$2[1],
phablet = _tweakAndBreakpoints$2[2],
tablet = _tweakAndBreakpoints$2[3],
desktop = _tweakAndBreakpoints$2[4],
leftCol = _tweakAndBreakpoints$2[5],
wide = _tweakAndBreakpoints$2[6];
var palette = {

@@ -360,2 +312,2 @@ brand: {

export { body, bodySizes, desktop, focusHalo, headline, headlineSizes, leftCol, mobileLandscape, mobileMedium, mq, palette, phablet, size$1 as size, space$1 as space, tablet, textSans, textSansSizes, transitions$1 as transitions, visuallyHidden, wide };
export { body, bodySizes, focusHalo, headline, headlineSizes, mq, palette, size$1 as size, space$1 as space, textSans, textSansSizes, transitions$1 as transitions, visuallyHidden };

@@ -49,40 +49,2 @@ 'use strict';

function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
function _iterableToArrayLimit(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
// https://stackoverflow.com/a/49725198/2118700

@@ -132,12 +94,2 @@

var _tweakAndBreakpoints$ = tweakAndBreakpoints.map(minWidth),
_tweakAndBreakpoints$2 = _slicedToArray(_tweakAndBreakpoints$, 7),
mobileMedium = _tweakAndBreakpoints$2[0],
mobileLandscape = _tweakAndBreakpoints$2[1],
phablet = _tweakAndBreakpoints$2[2],
tablet = _tweakAndBreakpoints$2[3],
desktop = _tweakAndBreakpoints$2[4],
leftCol = _tweakAndBreakpoints$2[5],
wide = _tweakAndBreakpoints$2[6];
var palette = {

@@ -366,15 +318,9 @@ brand: {

exports.bodySizes = bodySizes;
exports.desktop = desktop;
exports.focusHalo = focusHalo;
exports.headline = headline;
exports.headlineSizes = headlineSizes;
exports.leftCol = leftCol;
exports.mobileLandscape = mobileLandscape;
exports.mobileMedium = mobileMedium;
exports.mq = mq;
exports.palette = palette;
exports.phablet = phablet;
exports.size = size$1;
exports.space = space$1;
exports.tablet = tablet;
exports.textSans = textSans;

@@ -384,2 +330,1 @@ exports.textSansSizes = textSansSizes;

exports.visuallyHidden = visuallyHidden;
exports.wide = wide;

@@ -62,21 +62,2 @@ import { breakpoints, tweakpoints } from "./theme";

const [
mobileMedium,
mobileLandscape,
phablet,
tablet,
desktop,
leftCol,
wide
] = tweakAndBreakpoints.map(minWidth);
export {
mq,
mobileMedium,
mobileLandscape,
phablet,
tablet,
desktop,
leftCol,
wide
};
export { mq };

2

package.json
{
"name": "@guardian/src-foundations",
"version": "0.0.12",
"version": "0.0.13",
"main": "dist/foundations.js",

@@ -5,0 +5,0 @@ "module": "dist/foundations.esm.js",

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