@najemi-software/typed-scss-modules 14.0.0 → 14.1.0-alpha.62.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/README.md CHANGED
@@ -421,6 +421,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
421
421
  <td align="center" valign="top" width="14.28%"><a href="https://dev.to/srmagura"><img src="https://avatars.githubusercontent.com/u/801549?v=4?s=100" width="100px;" alt="Sam Magura"/><br /><sub><b>Sam Magura</b></sub></a><br /><a href="https://github.com/skovy/typed-scss-modules/commits?author=srmagura" title="Code">💻</a> <a href="https://github.com/skovy/typed-scss-modules/commits?author=srmagura" title="Tests">⚠️</a></td>
422
422
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/MichaelGregory"><img src="https://avatars.githubusercontent.com/u/1435960?v=4?s=100" width="100px;" alt="Mike Gregory"/><br /><sub><b>Mike Gregory</b></sub></a><br /><a href="https://github.com/skovy/typed-scss-modules/issues?q=author%3AMichaelGregory" title="Bug reports">🐛</a> <a href="https://github.com/skovy/typed-scss-modules/commits?author=MichaelGregory" title="Code">💻</a> <a href="https://github.com/skovy/typed-scss-modules/commits?author=MichaelGregory" title="Tests">⚠️</a></td>
423
423
  </tr>
424
+ <tr>
425
+ <td align="center" valign="top" width="14.28%"><a href="https://skovy.dev"><img src="https://avatars.githubusercontent.com/u/5247455?v=4?s=100" width="100px;" alt="Spencer Miskoviak"/><br /><sub><b>Spencer Miskoviak</b></sub></a><br /><a href="https://github.com/skovy/typed-scss-modules/commits?author=skovy" title="Code">💻</a> <a href="https://github.com/skovy/typed-scss-modules/commits?author=skovy" title="Documentation">📖</a> <a href="https://github.com/skovy/typed-scss-modules/commits?author=skovy" title="Tests">⚠️</a> <a href="#ideas-skovy" title="Ideas, Planning, & Feedback">🤔</a> <a href="#maintenance-skovy" title="Maintenance">🚧</a></td>
426
+ <td align="center" valign="top" width="14.28%"><a href="https://www.bakeit.dev/"><img src="https://avatars.githubusercontent.com/u/6359495?v=4?s=100" width="100px;" alt="am0wa"/><br /><sub><b>am0wa</b></sub></a><br /><a href="https://github.com/am0wa/tsjam-typed-scss-modules/commits?author=am0wa" title="Code">💻</a> <a href="https://github.com/am0wa/tsjam-typed-scss-modules/commits?author=am0wa" title="Documentation">📖</a> <a href="#ideas-am0wa" title="Ideas, Planning, & Feedback">🤔</a> <a href="#maintenance-am0wa" title="Maintenance">🚧</a></td>
427
+ </tr>
424
428
  </tbody>
425
429
  </table>
426
430
 
package/esm/core/watch.js CHANGED
@@ -19,11 +19,11 @@ export const watch = (pattern, options) => {
19
19
  watcher
20
20
  .on("change", (path) => {
21
21
  alerts.info(`[CHANGED] ${path}`);
22
- writeFile(path, options);
22
+ void writeFile(path, options);
23
23
  })
24
24
  .on("add", (path) => {
25
25
  alerts.info(`[ADDED] ${path}`);
26
- writeFile(path, options);
26
+ void writeFile(path, options);
27
27
  })
28
28
  .on("unlink", (path) => {
29
29
  alerts.info(`[REMOVED] ${path}`);
@@ -17,7 +17,7 @@ export const nameFormatDefault = "camel";
17
17
  export const fileToClassNames = async (file, { style = "expanded", loadPaths = [], silenceDeprecations = [], nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importers = [], async = false, } = {}) => {
18
18
  const root = await getImplementation(implementation);
19
19
  const nameFormat = (typeof rawNameFormat === "string" ? [rawNameFormat] : rawNameFormat);
20
- let nameFormats = [];
20
+ let nameFormats;
21
21
  if (nameFormat) {
22
22
  if (nameFormat.includes("all")) {
23
23
  nameFormats = NAME_FORMATS_WITH_TRANSFORMER;
@@ -7,8 +7,7 @@ export type SyncMode = "sync" | "async";
7
7
  * @public
8
8
  */
9
9
  export type Importer<TSync extends SyncMode = "sync"> = SassImporter<TSync> | FileImporter<TSync>;
10
- type AsyncImporter = Importer<"async">;
11
- export type { AsyncImporter as SASSAsyncImporter, Importer as SASSImporter };
10
+ export type { Importer as SASSImporter };
12
11
  /**
13
12
  * @public
14
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"importer.d.ts","sourceRoot":"","sources":["../../src/sass/importer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAa,QAAQ,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,QAAQ,GAAG,MAAM,IAAI,YAAY,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAElG,KAAK,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEvC,YAAY,EAAE,aAAa,IAAI,iBAAiB,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,UAAU,qBAAqB;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,+BACO,qBAAqB,WAC5C,MAAM,kBAYX,CAAC;AAEN,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,+BAG1D,qBAAqB,KAAG,YAAY,CAAC,KAAK,CAU5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,0CAI5D,oBAAoB,KAAG,QAAQ,CAAC,KAAK,CAAC,EAGxC,CAAC"}
1
+ {"version":3,"file":"importer.d.ts","sourceRoot":"","sources":["../../src/sass/importer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAa,QAAQ,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,QAAQ,GAAG,MAAM,IAAI,YAAY,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAElG,YAAY,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,UAAU,qBAAqB;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,+BACO,qBAAqB,WAC5C,MAAM,kBAYX,CAAC;AAEN,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,+BAG1D,qBAAqB,KAAG,YAAY,CAAC,KAAK,CAU5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,0CAI5D,oBAAoB,KAAG,QAAQ,CAAC,KAAK,CAAC,EAGxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@najemi-software/typed-scss-modules",
3
- "version": "14.0.0",
3
+ "version": "14.1.0-alpha.62.1",
4
4
  "private": false,
5
5
  "description": "TypeScript type definition generator for SCSS CSS Modules",
6
6
  "keywords": [