@penskemediacorp/larva-svg 1.24.1 → 1.28.0

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.
@@ -2,15 +2,14 @@ const assert = require( 'assert' );
2
2
  const getSassVarsString = require( '../lib/getSassVarsString' );
3
3
 
4
4
  const iconObj = {
5
- 'envelope': '<svg>hello</svg>',
6
- 'chat': '<svg>hello chat</svg>',
5
+ envelope: '<svg>hello</svg>',
6
+ chat: '<svg>hello chat</svg>',
7
7
  };
8
8
 
9
9
  const expectedSass = `$envelope: '<svg>hello</svg>';\n\n$chat: '<svg>hello chat</svg>';\n\n`;
10
10
 
11
11
  describe( 'getSassVarsString', () => {
12
-
13
12
  it( 'outputs a string of Sass', () => {
14
13
  assert.equal( getSassVarsString( iconObj ), expectedSass );
15
- });
16
- });
14
+ } );
15
+ } );
@@ -1,11 +1,11 @@
1
1
  module.exports = function getSassVarsString( iconsObj ) {
2
2
  let str = '';
3
3
 
4
- for ( var key in iconsObj ) {
4
+ for ( const key in iconsObj ) {
5
5
  if ( iconsObj.hasOwnProperty( key ) ) {
6
- str += '$' + key + ": '" + iconsObj[key] + "';\n\n";
6
+ str += '$' + key + ": '" + iconsObj[ key ] + "';\n\n";
7
7
  }
8
8
  }
9
9
 
10
10
  return str;
11
- }
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@penskemediacorp/larva-svg",
3
- "version": "1.24.1",
3
+ "version": "1.28.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "laras126 <laras126@gmail.com>",
6
6
  "homepage": "https://github.com/penske-media-corp/pmc-larva/tree/master/packages/larva-svg#readme",
@@ -19,5 +19,5 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/penske-media-corp/pmc-larva/issues"
21
21
  },
22
- "gitHead": "dd41bb6e0401d247edc4b4210db962bcdd9155bc"
22
+ "gitHead": "36e335324c72395c8ef8f1d98b204d19b53a23e2"
23
23
  }