lingo.dev 0.77.5 → 0.77.7

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/build/cli.mjs CHANGED
@@ -266,7 +266,6 @@ function _getConfigFilePath() {
266
266
  import { defaultConfig, resolveLocaleCode as resolveLocaleCode2, bucketTypes } from "@lingo.dev/_spec";
267
267
  import fs6 from "fs";
268
268
  import path7 from "path";
269
- import { spawn } from "child_process";
270
269
  import _3 from "lodash";
271
270
  import { checkbox as checkbox2, confirm as confirm2, input } from "@inquirer/prompts";
272
271
 
@@ -602,9 +601,10 @@ function makeGitlabInitializer(spinner) {
602
601
  }
603
602
 
604
603
  // src/cli/cmd/init.ts
604
+ import open2 from "open";
605
605
  var openUrl = (path13) => {
606
606
  const settings = getSettings(void 0);
607
- spawn("open", [`${settings.auth.webUrl}${path13}`]);
607
+ open2(`${settings.auth.webUrl}${path13}`, { wait: false });
608
608
  };
609
609
  var throwHelpError = (option, value) => {
610
610
  if (value === "help") {
@@ -1776,7 +1776,7 @@ import { isValid, parseISO } from "date-fns";
1776
1776
  function createUnlocalizableLoader(isCacheRestore = false) {
1777
1777
  const rules = {
1778
1778
  isEmpty: (v) => _10.isEmpty(v),
1779
- isNumber: (v) => !_10.isNaN(_10.toNumber(v)),
1779
+ isNumber: (v) => typeof v === "number" || /^[0-9]+$/.test(v),
1780
1780
  isBoolean: (v) => _10.isBoolean(v),
1781
1781
  isIsoDate: (v) => _10.isString(v) && _isIsoDate(v),
1782
1782
  isSystemId: (v) => _10.isString(v) && _isSystemId(v),
@@ -3169,7 +3169,7 @@ var i18n_default = new Command6().command("i18n").description("Run Localization
3169
3169
  ora.start("Validating localization configuration...");
3170
3170
  validateParams(i18nConfig, flags);
3171
3171
  ora.succeed("Localization configuration is valid");
3172
- ora.start("Connecting to Replexica Localization Engine...");
3172
+ ora.start("Connecting to Lingo.dev Localization Engine...");
3173
3173
  const auth = await validateAuth(settings);
3174
3174
  ora.succeed(`Authenticated as ${auth.email}`);
3175
3175
  let buckets = getBuckets(i18nConfig);
@@ -3752,7 +3752,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
3752
3752
  // package.json
3753
3753
  var package_default = {
3754
3754
  name: "lingo.dev",
3755
- version: "0.77.5",
3755
+ version: "0.77.7",
3756
3756
  description: "Lingo.dev CLI",
3757
3757
  private: false,
3758
3758
  publishConfig: {
@@ -3777,6 +3777,19 @@ var package_default = {
3777
3777
  require: "./build/spec.cjs"
3778
3778
  }
3779
3779
  },
3780
+ typesVersions: {
3781
+ "*": {
3782
+ sdk: [
3783
+ "./build/sdk.d.ts"
3784
+ ],
3785
+ cli: [
3786
+ "./build/cli.d.ts"
3787
+ ],
3788
+ spec: [
3789
+ "./build/spec.d.ts"
3790
+ ]
3791
+ }
3792
+ },
3780
3793
  bin: {
3781
3794
  "lingo.dev": "./bin/cli.mjs"
3782
3795
  },