@adobe/alloy 2.26.0-beta.3 → 2.26.0-beta.4
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.
|
@@ -14,4 +14,4 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
*/
|
|
15
15
|
// The __VERSION__ keyword will be replace at alloy build time with the package.json version.
|
|
16
16
|
// see babel-plugin-version
|
|
17
|
-
var _default = exports.default = "2.26.0-beta.
|
|
17
|
+
var _default = exports.default = "2.26.0-beta.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.26.0-beta.
|
|
3
|
+
"version": "2.26.0-beta.4",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "libEs5/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"babel.config.cjs",
|
|
13
13
|
"rollup.config.js",
|
|
14
14
|
"scripts/helpers/entryPointGeneratorBabelPlugin.js",
|
|
15
|
-
"scripts/helpers/versionBabelPlugin.js"
|
|
15
|
+
"scripts/helpers/versionBabelPlugin.js",
|
|
16
|
+
"scripts/helpers/path.js"
|
|
16
17
|
],
|
|
17
18
|
"bin": {
|
|
18
19
|
"alloyBuilder": "scripts/alloyBuilder.js"
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"uuid": "^11.1.0"
|
|
87
88
|
},
|
|
88
89
|
"devDependencies": {
|
|
89
|
-
"@adobe/alloy": "^2.26.0-beta.
|
|
90
|
+
"@adobe/alloy": "^2.26.0-beta.3",
|
|
90
91
|
"@babel/cli": "^7.26.4",
|
|
91
92
|
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
92
93
|
"@eslint/js": "^9.20.0",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import process from "process";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
|
|
5
|
+
export const getFilename = (root = import.meta.url) => fileURLToPath(root);
|
|
6
|
+
export const getDirname = (root = import.meta.url) =>
|
|
7
|
+
path.dirname(getFilename(root));
|
|
8
|
+
export const getProjectRoot = () => {
|
|
9
|
+
if (process.env.npm_config_cwd) {
|
|
10
|
+
return process.env.npm_config_cwd;
|
|
11
|
+
}
|
|
12
|
+
const dirname = getDirname(import.meta.url);
|
|
13
|
+
return path.resolve(dirname, "../..");
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const safePathJoin = (...args) => {
|
|
17
|
+
const joined = path.normalize(path.join(...args));
|
|
18
|
+
const absolute = path.resolve(joined);
|
|
19
|
+
if (!absolute.startsWith(getProjectRoot())) {
|
|
20
|
+
throw new Error(`Path must be within project root: ${absolute}`);
|
|
21
|
+
}
|
|
22
|
+
return absolute;
|
|
23
|
+
};
|