real-world-css-libraries 1.0.0 → 1.0.1
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/index.js +6 -5
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -114,14 +114,15 @@ function getSource (filePath) {
|
|
|
114
114
|
}
|
|
115
115
|
function getSourceWithoutURL (source) {
|
|
116
116
|
return source
|
|
117
|
-
.split('
|
|
117
|
+
.split('\n')
|
|
118
118
|
.toSpliced(0, 1)
|
|
119
|
-
.join('');
|
|
119
|
+
.join('\n');
|
|
120
120
|
}
|
|
121
121
|
function getUrlFromSource (source) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
const firstLine = source.split('\n')[0];
|
|
123
|
+
return firstLine
|
|
124
|
+
.replace('/* ', '')
|
|
125
|
+
.replace(' */', '');
|
|
125
126
|
}
|
|
126
127
|
function validate (source) {
|
|
127
128
|
const firstLine = source.split('\n')[0];
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "real-world-css-libraries",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"bump": "npx --yes -- @jsdevtools/version-bump-prompt && npm i",
|
|
7
8
|
"test": "node ./test.js"
|
|
8
9
|
},
|
|
9
10
|
"homepage": "https://github.com/TheJaredWilcurt/real-world-css-libraries#readme",
|