@initx-plugin/utils 0.0.25 → 0.0.27

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/dist/gpg.mjs CHANGED
@@ -1,5 +1,4 @@
1
- export { g as gpgList } from './shared/utils.7b284c15.mjs';
2
- import 'node:os';
1
+ export { g as gpgList } from './shared/utils.60d0da53.mjs';
3
2
  import 'ora';
4
3
  import 'tinyexec';
5
4
  import 'which';
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
- export { c, g as gpgList, l as loadingFunction, w as where } from './shared/utils.7b284c15.mjs';
1
+ export { c, g as gpgList, l as loadingFunction, w as where } from './shared/utils.60d0da53.mjs';
2
2
  import _inquirer from 'inquirer';
3
3
  import c from 'picocolors';
4
- import 'node:os';
5
4
  import 'ora';
6
5
  import 'tinyexec';
7
6
  import 'which';
@@ -1,4 +1,3 @@
1
- import { EOL } from 'node:os';
2
1
  import ora from 'ora';
3
2
  import { x } from 'tinyexec';
4
3
  import which from 'which';
@@ -34,7 +33,7 @@ async function loadingFunction(message, fn) {
34
33
  async function gpgList() {
35
34
  const result = await c("gpg", ["-k"]);
36
35
  const keys = [];
37
- const lines = result.content.split(EOL).filter((str) => str.trim() !== "");
36
+ const lines = result.content.split(/\r?\n|\r/).filter((str) => str.trim() !== "");
38
37
  if (!lines || lines.length < 4) {
39
38
  return [];
40
39
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@initx-plugin/utils",
3
3
  "type": "module",
4
- "version": "0.0.25",
4
+ "version": "0.0.27",
5
5
  "description": "A more convenient scripting engine",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/initx-collective/initx#readme",