@cntrl-site/sdk 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ class FontFaceGenerator {
17
17
  .map(file => `url('${file.url}') format('${FILE_TYPES_MAP[file.type] || file.type}')`);
18
18
  return `
19
19
  @font-face {
20
- font-family: ${font.name};
20
+ font-family: "${font.name}";
21
21
  font-weight: ${font.weight};
22
22
  font-style: ${font.style};
23
23
  ${eotFile ? `src: url('${eotFile.url}');\n ` : ''}src: ${otherFiles.join(', ')};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -27,7 +27,7 @@
27
27
  "lib": "lib"
28
28
  },
29
29
  "dependencies": {
30
- "@cntrl-site/core": "^1.29.0",
30
+ "@cntrl-site/core": "^1.32.0",
31
31
  "@types/ejs": "^3.1.2",
32
32
  "@types/isomorphic-fetch": "^0.0.36",
33
33
  "commander": "^10.0.1",
@@ -40,7 +40,7 @@ describe('FontFaceGenerator', () => {
40
40
  const generator = new FontFaceGenerator(fonts);
41
41
  expect(generator.generate()).toEqual(`
42
42
  @font-face {
43
- font-family: Aeonik;
43
+ font-family: "Aeonik";
44
44
  font-weight: 400;
45
45
  font-style: normal;
46
46
  src: url('link/to/font.eot');
@@ -48,7 +48,7 @@ describe('FontFaceGenerator', () => {
48
48
  }
49
49
 
50
50
  @font-face {
51
- font-family: Anek Odia;
51
+ font-family: "Anek Odia";
52
52
  font-weight: 700;
53
53
  font-style: italic;
54
54
  src: url('link/to/font.woff') format('woff'), url('link/to/font.ttf') format('truetype');
@@ -18,7 +18,7 @@ export class FontFaceGenerator {
18
18
  .map(file => `url('${file.url}') format('${FILE_TYPES_MAP[file.type] || file.type}')`);
19
19
  return `
20
20
  @font-face {
21
- font-family: ${font.name};
21
+ font-family: "${font.name}";
22
22
  font-weight: ${font.weight};
23
23
  font-style: ${font.style};
24
24
  ${eotFile ? `src: url('${eotFile.url}');\n ` : ''}src: ${otherFiles.join(', ')};