sfmc-dataloader 2.0.1 → 2.0.2
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/lib/cli.mjs +4 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -22,6 +22,10 @@ import { crossBuImport } from './cross-bu-import.mjs';
|
|
|
22
22
|
|
|
23
23
|
/** @returns {string} semver from this package's package.json */
|
|
24
24
|
function readCliPackageVersion() {
|
|
25
|
+
const injected = globalThis.__sfmc_dataloader_version__;
|
|
26
|
+
if (typeof injected === 'string' && injected.length > 0) {
|
|
27
|
+
return injected;
|
|
28
|
+
}
|
|
25
29
|
const pkgPath = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
|
|
26
30
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
27
31
|
return typeof pkg.version === 'string' ? pkg.version : '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfmc-dataloader",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "SFMC Data Loader CLI (mcdata) to export and import Marketing Cloud Data Extension rows using mcdev project config and sfmc-sdk",
|
|
5
5
|
"author": "Jörn Berkefeld <joern.berkefeld@gmail.com>",
|
|
6
6
|
"license": "MIT",
|