@sylphai/adal-cli-linux-x64 0.1.0-beta.20 → 0.1.0-beta.26
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/adal-cli.js +12 -7
- package/backend/adal-backend +0 -0
- package/package.json +1 -1
package/adal-cli.js
CHANGED
|
@@ -292028,14 +292028,20 @@ import path19 from "node:path";
|
|
|
292028
292028
|
var import_code_frame = __toESM(require_lib4(), 1);
|
|
292029
292029
|
|
|
292030
292030
|
// node_modules/index-to-position/index.js
|
|
292031
|
-
|
|
292031
|
+
var getOffsets = ({
|
|
292032
|
+
oneBased,
|
|
292033
|
+
oneBasedLine = oneBased,
|
|
292034
|
+
oneBasedColumn = oneBased
|
|
292035
|
+
} = {}) => [oneBasedLine ? 1 : 0, oneBasedColumn ? 1 : 0];
|
|
292036
|
+
function getPosition(text, textIndex, options) {
|
|
292032
292037
|
const lineBreakBefore = textIndex === 0 ? -1 : text.lastIndexOf("\n", textIndex - 1);
|
|
292038
|
+
const [lineOffset, columnOffset] = getOffsets(options);
|
|
292033
292039
|
return {
|
|
292034
|
-
line: lineBreakBefore === -1 ?
|
|
292035
|
-
column: textIndex - lineBreakBefore - 1
|
|
292040
|
+
line: lineBreakBefore === -1 ? lineOffset : text.slice(0, lineBreakBefore + 1).match(/\n/g).length + lineOffset,
|
|
292041
|
+
column: textIndex - lineBreakBefore - 1 + columnOffset
|
|
292036
292042
|
};
|
|
292037
292043
|
}
|
|
292038
|
-
function indexToPosition(text, textIndex,
|
|
292044
|
+
function indexToPosition(text, textIndex, options) {
|
|
292039
292045
|
if (typeof text !== "string") {
|
|
292040
292046
|
throw new TypeError("Text parameter should be a string");
|
|
292041
292047
|
}
|
|
@@ -292045,8 +292051,7 @@ function indexToPosition(text, textIndex, { oneBased = false } = {}) {
|
|
|
292045
292051
|
if (textIndex < 0 || textIndex > text.length) {
|
|
292046
292052
|
throw new RangeError("Index out of bounds");
|
|
292047
292053
|
}
|
|
292048
|
-
|
|
292049
|
-
return oneBased ? { line: position.line + 1, column: position.column + 1 } : position;
|
|
292054
|
+
return getPosition(text, textIndex, options);
|
|
292050
292055
|
}
|
|
292051
292056
|
|
|
292052
292057
|
// node_modules/parse-json/index.js
|
|
@@ -292197,7 +292202,7 @@ async function getPackageJson2() {
|
|
|
292197
292202
|
// packages/cli/src/utils/version.ts
|
|
292198
292203
|
async function getCliVersion() {
|
|
292199
292204
|
const pkgJson = await getPackageJson2();
|
|
292200
|
-
return "0.1.0-beta.
|
|
292205
|
+
return "0.1.0-beta.26";
|
|
292201
292206
|
}
|
|
292202
292207
|
|
|
292203
292208
|
// packages/cli/src/config/config.ts
|
package/backend/adal-backend
CHANGED
|
Binary file
|