azureauth 0.4.1 → 0.4.3
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/cli.js +2 -1
- package/package.json +2 -1
- package/scripts/install.js +2 -1
package/cli.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { execa } from "execa";
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
5
6
|
|
|
6
|
-
const __dirname =
|
|
7
|
+
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
7
8
|
|
|
8
9
|
let azureauth = path.join(__dirname, "bin", "azureauth", "azureauth");
|
|
9
10
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azureauth",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "node-azure auth wrapps the AzureAuth CLI wrapper for performing AAD Authentication",
|
|
5
5
|
"bin": {
|
|
6
6
|
"azureauth": "./cli.js"
|
|
7
7
|
},
|
|
8
|
+
"main": "lib/index.js",
|
|
8
9
|
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "tsc",
|
package/scripts/install.js
CHANGED
|
@@ -2,8 +2,9 @@ import path from "path";
|
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import { DownloaderHelper } from "node-downloader-helper";
|
|
4
4
|
import decompress from "decompress";
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
5
6
|
|
|
6
|
-
const __dirname =
|
|
7
|
+
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
7
8
|
|
|
8
9
|
async function download(url, saveDirectory) {
|
|
9
10
|
const downloader = new DownloaderHelper(url, saveDirectory);
|