🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@nativescript/webpack

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript/webpack - npm Package Compare versions

Comparing version

to
5.0.22-next

@@ -31,9 +31,9 @@ import { merge } from 'webpack-merge';

export declare const defaultConfigs: {
base: typeof import("./configuration/base").default;
angular: typeof import("./configuration/angular").default;
javascript: typeof import("./configuration/javascript").default;
react: typeof import("./configuration/react").default;
svelte: typeof import("./configuration/svelte").default;
typescript: typeof import("./configuration/typescript").default;
vue: typeof import("./configuration/vue").default;
base: typeof import("src/configuration/base").default;
angular: typeof import("src/configuration/angular").default;
javascript: typeof import("src/configuration/javascript").default;
react: typeof import("src/configuration/react").default;
svelte: typeof import("src/configuration/svelte").default;
typescript: typeof import("src/configuration/typescript").default;
vue: typeof import("src/configuration/vue").default;
};

@@ -45,12 +45,12 @@ /**

merge: typeof merge;
addCopyRule: typeof import("./helpers/copyRules").addCopyRule;
removeCopyRule: typeof import("./helpers/copyRules").removeCopyRule;
applyFileReplacements: typeof import("./helpers/fileReplacements").applyFileReplacements;
addCopyRule: typeof import("src/helpers/copyRules").addCopyRule;
removeCopyRule: typeof import("src/helpers/copyRules").removeCopyRule;
applyFileReplacements: typeof import("src/helpers/fileReplacements").applyFileReplacements;
config: {
getValue: typeof import("./helpers/config").getValue;
getValue: typeof import("src/helpers/config").getValue;
};
dependencies: {
getAllDependencies: typeof import("./helpers/dependencies").getAllDependencies;
hasDependency: typeof import("./helpers/dependencies").hasDependency;
getDependencyPath: typeof import("./helpers/dependencies").getDependencyPath;
getAllDependencies: typeof import("src/helpers/dependencies").getAllDependencies;
hasDependency: typeof import("src/helpers/dependencies").hasDependency;
getDependencyPath: typeof import("src/helpers/dependencies").getDependencyPath;
};

@@ -61,3 +61,3 @@ flavor: {

host: {
getIPS: typeof import("./helpers/host").getIPS;
getIPS: typeof import("src/helpers/host").getIPS;
};

@@ -71,21 +71,21 @@ log: {

platform: {
addPlatform: typeof import("./helpers/platform").addPlatform;
getAbsoluteDistPath: typeof import("./helpers/platform").getAbsoluteDistPath;
getDistPath: typeof import("./helpers/platform").getDistPath;
getEntryDirPath: typeof import("./helpers/platform").getEntryDirPath;
getEntryPath: typeof import("./helpers/platform").getEntryPath;
getPlatform: typeof import("./helpers/platform").getPlatform;
getPlatformName: typeof import("./helpers/platform").getPlatformName;
addPlatform: typeof import("src/helpers/platform").addPlatform;
getAbsoluteDistPath: typeof import("src/helpers/platform").getAbsoluteDistPath;
getDistPath: typeof import("src/helpers/platform").getDistPath;
getEntryDirPath: typeof import("src/helpers/platform").getEntryDirPath;
getEntryPath: typeof import("src/helpers/platform").getEntryPath;
getPlatform: typeof import("src/helpers/platform").getPlatform;
getPlatformName: typeof import("src/helpers/platform").getPlatformName;
};
project: {
getProjectFilePath: typeof import("./helpers/project").getProjectFilePath;
getProjectRootPath: typeof import("./helpers/project").getProjectRootPath;
getPackageJson: typeof import("./helpers/project").getPackageJson;
getProjectFilePath: typeof import("src/helpers/project").getProjectFilePath;
getProjectRootPath: typeof import("src/helpers/project").getProjectRootPath;
getPackageJson: typeof import("src/helpers/project").getPackageJson;
};
virtualModules: {
addVirtualEntry: typeof import("./helpers/virtualModules").addVirtualEntry;
addVirtualModule: typeof import("./helpers/virtualModules").addVirtualModule;
addVirtualEntry: typeof import("src/helpers/virtualModules").addVirtualEntry;
addVirtualModule: typeof import("src/helpers/virtualModules").addVirtualModule;
};
tsconfig: {
readTsConfig: typeof import("./helpers/typescript").readTsConfig;
readTsConfig: typeof import("src/helpers/typescript").readTsConfig;
};

@@ -92,0 +92,0 @@ };

@@ -6,2 +6,5 @@ "use strict";

var _a;
if (process.env.USER_PROJECT_PLATFORMS_ANDROID) {
return `${process.env.USER_PROJECT_PLATFORMS_ANDROID}/${process.env.USER_PROJECT_PLATFORMS_ANDROID_MODULE}/src/nativescript/assets/app`;
}
return `${(_a = __1.env.buildPath) !== null && _a !== void 0 ? _a : "platforms"}/android/app/src/main/assets/app`;

@@ -8,0 +11,0 @@ }

@@ -6,2 +6,3 @@ "use strict";

const __1 = require("../");
const config_1 = require("../helpers/config");
function sanitizeName(appName) {

@@ -11,5 +12,8 @@ return appName.split("").filter((c) => /[a-zA-Z0-9]/.test(c)).join("");

function getDistPath() {
var _a;
const appName = sanitizeName((0, path_1.basename)((0, project_1.getProjectRootPath)()));
return `${(_a = __1.env.buildPath) !== null && _a !== void 0 ? _a : "platforms"}/ios/${appName}/app`;
var _a, _b;
// if nativescript.config projectName is defined, use that custom name
// otherwise, default to base project directory name for project name
const appName = (_a = (0, config_1.getValue)('projectName')) !== null && _a !== void 0 ? _a : sanitizeName((0, path_1.basename)((0, project_1.getProjectRootPath)()));
const platform = process.env.USER_PROJECT_PLATFORMS_IOS ? process.env.USER_PROJECT_PLATFORMS_IOS : `${(_b = __1.env.buildPath) !== null && _b !== void 0 ? _b : "platforms"}/ios`;
return `${platform}/${appName}/app`;
}

@@ -16,0 +20,0 @@ const iOSPlatform = {

{
"name": "@nativescript/webpack",
"version": "5.0.21",
"version": "5.0.22-next",
"private": false,

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet