postcss-import-glob 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/lib/utils.js +1 -0
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -7,6 +7,7 @@ export const raw = string =>
7
7
  string.match(/^(?:url\()?["']?(.+\.css)["')]/)?.at(1)
8
8
 
9
9
  export function basedir(path) {
10
+ if (path == null) return process.cwd()
10
11
  const { dir, base, name } = parse(path)
11
12
  return base === name ? dir.length ? join(dir, name) : name : dir
12
13
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.1",
2
+ "version": "0.1.2",
3
3
  "name": "postcss-import-glob",
4
4
  "description": "PostCSS plugin to inline CSS @imports, with support for glob patterns.",
5
5
  "keywords": [