@justeattakeaway/pie-icons 4.2.0 → 4.4.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.
- package/package.json +2 -2
- package/dist/helpers/index.js +0 -15
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-icons",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Common icons for use for PIE Project",
|
|
5
5
|
"main": "dist/pie-icons.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
6
7
|
"license": "Apache-2.0",
|
|
7
8
|
"keywords": [
|
|
8
9
|
"PIE"
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
"svgo": "3.0.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"copyfiles": "2.4.1",
|
|
36
36
|
"lint-staged": "12.5.0",
|
|
37
37
|
"nodemon": "2.0.22",
|
|
38
38
|
"svgo": "3.0.2",
|
package/dist/helpers/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalizes a component name by removing any hyphens
|
|
3
|
-
* directly before digits in the passed string
|
|
4
|
-
* For example: over-18-filled-large
|
|
5
|
-
* Without this normlization the PascalCase generation would return Over-16Filled
|
|
6
|
-
* @param {string} name - a string, for example an icon name
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
function normalizeIconName (name) {
|
|
10
|
-
return name.replace(/\-(\d+)/, '$1'); // eslint-disable-line no-useless-escape
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
module.exports = {
|
|
14
|
-
normalizeIconName,
|
|
15
|
-
};
|