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

@bbc/psammead-styles

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/psammead-styles - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

colours/package.json

2

CHANGELOG.md

@@ -6,4 +6,6 @@ # @bbc/psammead-styles Changelog

|---------|-------------|
| 2.1.2 | [PR#1847](https://github.com/bbc/psammead/pull/1847) Fixed Telugu typos |
| 2.1.1 | [PR#1803](https://github.com/bbc/psammead/pull/1803/) Patches broken links on badges in documentation |
| 2.1.0 | [PR#1794](https://github.com/bbc/psammead/pull/1794) Add david dependency badges |
| 2.0.4 | [PR#1777](https://github.com/bbc/psammead/pull/1777) Make psammead-styles treeshakable. |
| 2.0.3 | [PR#1727](https://github.com/bbc/psammead/pull/1727) Fix for Latha Font URL. |

@@ -10,0 +12,0 @@ | 2.0.2 | [PR#1682](https://github.com/bbc/psammead/pull/1682) Move all dev dependencies to top level package.json |

10

dist/font-families.js

@@ -174,8 +174,8 @@ "use strict";

/*
* TELEGU
* TELUGU
*/
var teleguFontFamily = "font-family: Mallanna, \"Noto Sans Telugu\", \"Hind Guntur\", Gautami, \"Kohinoor Telugu\", sans-serif;";
var teleguStyles = {
sansRegular: "\n ".concat(teleguFontFamily, "\n ").concat(getFontStyleAndWeight('normal', 400), "\n ")
var teluguFontFamily = "font-family: Mallanna, \"Noto Sans Telugu\", \"Hind Guntur\", Gautami, \"Kohinoor Telugu\", sans-serif;";
var teluguStyles = {
sansRegular: "\n ".concat(teluguFontFamily, "\n ").concat(getFontStyleAndWeight('normal', 400), "\n ")
};

@@ -266,3 +266,3 @@ /*

exports.tamil = tamil;
var telugu = teleguStyles;
var telugu = teluguStyles;
exports.telugu = telugu;

@@ -269,0 +269,0 @@ var thai = thaiStyles;

@@ -167,8 +167,8 @@ /*

/*
* TELEGU
* TELUGU
*/
var teleguFontFamily = "font-family: Mallanna, \"Noto Sans Telugu\", \"Hind Guntur\", Gautami, \"Kohinoor Telugu\", sans-serif;";
var teleguStyles = {
sansRegular: "\n ".concat(teleguFontFamily, "\n ").concat(getFontStyleAndWeight('normal', 400), "\n ")
var teluguFontFamily = "font-family: Mallanna, \"Noto Sans Telugu\", \"Hind Guntur\", Gautami, \"Kohinoor Telugu\", sans-serif;";
var teluguStyles = {
sansRegular: "\n ".concat(teluguFontFamily, "\n ").concat(getFontStyleAndWeight('normal', 400), "\n ")
};

@@ -226,3 +226,3 @@ /*

export var tamil = tamilStyles;
export var telugu = teleguStyles;
export var telugu = teluguStyles;
export var thai = thaiStyles;

@@ -229,0 +229,0 @@ export var tigrinya = tigrinyaStyles;

import { testUtilityPackages } from '@bbc/psammead-test-helpers';
import * as colours from './colours';
import * as coloursFromSrc from './src/colours';
import * as detection from './detection';
import * as detectionFromSrc from './src/detection';
import * as fonts from './fonts';
import * as fontsFromSrc from './src/fonts';

@@ -87,17 +81,18 @@ const fontsExpectedExports = {

const actualExports = {
colours,
detection,
fonts,
const getExports = key => {
const exports = {};
Object.keys(expectedExports).forEach(expectedExport => {
/* eslint-disable global-require, import/no-dynamic-require */
const packageJson = require(`./${expectedExport}/package.json`);
exports[
expectedExport
] = require(`./${expectedExport}/${packageJson[key]}`);
/* eslint-enable global-require, import/no-dynamic-require */
});
return exports;
};
const actualExportsFromSrc = {
colours: coloursFromSrc,
detection: detectionFromSrc,
fonts: fontsFromSrc,
};
describe('Psammead styles', () => {
it('should test all the utility exports exist and are the correct type', () => {
testUtilityPackages(actualExports, expectedExports, 'psammead-styles');
testUtilityPackages(getExports('main'), expectedExports, 'psammead-styles');
});

@@ -107,3 +102,3 @@

testUtilityPackages(
actualExportsFromSrc,
getExports('module'),
expectedExports,

@@ -110,0 +105,0 @@ 'psammead-styles',

{
"name": "@bbc/psammead-styles",
"version": "2.1.1",
"version": "2.1.2",
"description": "A collection of string constants for use in CSS, containing non-GEL styling details that are bespoke to specific BBC services and products.",

@@ -5,0 +5,0 @@ "repository": {

@@ -303,9 +303,9 @@ /*

/*
* TELEGU
* TELUGU
*/
const teleguFontFamily = `font-family: Mallanna, "Noto Sans Telugu", "Hind Guntur", Gautami, "Kohinoor Telugu", sans-serif;`;
const teluguFontFamily = `font-family: Mallanna, "Noto Sans Telugu", "Hind Guntur", Gautami, "Kohinoor Telugu", sans-serif;`;
const teleguStyles = {
const teluguStyles = {
sansRegular: `
${teleguFontFamily}
${teluguFontFamily}
${getFontStyleAndWeight('normal', 400)}

@@ -380,3 +380,3 @@ `,

export const tamil = tamilStyles;
export const telugu = teleguStyles;
export const telugu = teluguStyles;
export const thai = thaiStyles;

@@ -383,0 +383,0 @@ export const tigrinya = tigrinyaStyles;

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