Skip to content

Commit 476699a

Browse files
committed
Renamed repo and slugs
1 parent 16e987c commit 476699a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = (opts = {}) => {
44
const defaultBreakpoint = opts.breakpoint || '769';
55

66
return {
7-
postcssPlugin: 'postcss-responsive-value',
7+
postcssPlugin: 'postcss-responsive-css-values',
88
Once(root) {
99
// Iterate through all CSS declarations
1010
root.walkDecls(decl => {
@@ -20,7 +20,7 @@ module.exports = (opts = {}) => {
2020
if (params.length < 2 || params.length > 3) {
2121
throw decl.error(
2222
`res-val() error: Invalid number of parameters. Expected 2 or 3 (min, max, [breakpoint]), but found ${params.length}.`,
23-
{ plugin: 'postcss-responsive-value' }
23+
{ plugin: 'postcss-responsive-css-values' }
2424
);
2525
}
2626

@@ -34,28 +34,28 @@ module.exports = (opts = {}) => {
3434
if (isNaN(parsedMin)) {
3535
throw decl.error(
3636
`res-val() error: Invalid value for "min". Expected a number, but got "${min}".`,
37-
{ plugin: 'postcss-responsive-value' }
37+
{ plugin: 'postcss-responsive-css-values' }
3838
);
3939
}
4040
// Validate that max is a valid number
4141
if (isNaN(parsedMax)) {
4242
throw decl.error(
4343
`res-val() error: Invalid value for "max". Expected a number, but got "${max}".`,
44-
{ plugin: 'postcss-responsive-value' }
44+
{ plugin: 'postcss-responsive-css-values' }
4545
);
4646
}
4747
// Validate that breakpoint is a valid number
4848
if (isNaN(parsedBreakpoint)) {
4949
throw decl.error(
5050
`res-val() error: Invalid breakpoint value. Expected a number, but got "${breakpointVal}".`,
51-
{ plugin: 'postcss-responsive-value' }
51+
{ plugin: 'postcss-responsive-css-values' }
5252
);
5353
}
5454
// Validate that min is less than max
5555
if (parsedMin >= parsedMax) {
5656
throw decl.error(
5757
`res-val() error: "min" value (${parsedMin}px) must be less than "max" value (${parsedMax}px).`,
58-
{ plugin: 'postcss-responsive-value' }
58+
{ plugin: 'postcss-responsive-css-values' }
5959
);
6060
}
6161

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "postcss-responsive-value",
3-
"version": "0.0.0",
2+
"name": "postcss-responsive-css-values",
3+
"version": "1.0.0",
44
"description": "This PostCSS plugin provides you with a function that allows you to use dynamic values instead of static CSS values, which are automatically reduced from a defined breakpoint.",
55
"main": "index.js",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/thedroelfi/postcss-responsive-value.git"
8+
"url": "git+https://github.com/thedroelfi/postcss-responsive-css-values.git"
99
},
1010
"keywords": [
1111
"CSS",
@@ -16,9 +16,9 @@
1616
"author": "The Droelfi",
1717
"license": "MIT",
1818
"bugs": {
19-
"url": "https://github.com/thedroelfi/postcss-responsive-value/issues"
19+
"url": "https://github.com/thedroelfi/postcss-responsive-css-values/issues"
2020
},
21-
"homepage": "https://github.com/thedroelfi/postcss-responsive-value#readme",
21+
"homepage": "https://github.com/thedroelfi/postcss-responsive-css-values#readme",
2222
"dependencies": {
2323
"postcss": "^8.5.2"
2424
}

0 commit comments

Comments
 (0)