amplify-cli-core
Advanced tools
Comparing version 1.4.1-alpha.14 to 1.4.1-alpha.22
@@ -26,3 +26,24 @@ import { ServiceSelection } from './serviceSelection'; | ||
runtime: $TSAny; | ||
pluginPlatform: IPluginPlatform; | ||
}; | ||
export declare type IPluginPlatform = { | ||
pluginDirectories: string[]; | ||
pluginPrefixes: string[]; | ||
userAddedLocations: string[]; | ||
lastScanTime: Date; | ||
maxScanIntervalInSeconds: Number; | ||
plugins: IPluginCollection; | ||
excluded: IPluginCollection; | ||
}; | ||
export declare type IPluginCollection = { | ||
[pluginType: string]: IPluginInfo[]; | ||
}; | ||
export declare type IPluginInfo = { | ||
packageName: string; | ||
packageVersion: string; | ||
packageLocation: string; | ||
manifest: $IPluginManifest; | ||
}; | ||
export declare type GetPackageAssetPaths = () => Promise<string[]>; | ||
export declare type $IPluginManifest = $TSAny; | ||
export declare type $TSMeta = any; | ||
@@ -29,0 +50,0 @@ export declare type $TSTeamProviderInfo = any; |
@@ -27,2 +27,4 @@ export declare const PathConstants: { | ||
constructor(); | ||
getAmplifyPackageLibDirPath: (packageName: string) => string; | ||
getAmplifyLibRoot: () => string; | ||
getHomeDotAmplifyDirPath: () => string; | ||
@@ -29,0 +31,0 @@ getAmplifyDirPath: (projectPath?: string | undefined) => string; |
@@ -51,2 +51,10 @@ "use strict"; | ||
constructor() { | ||
this.getAmplifyPackageLibDirPath = (packageName) => { | ||
const result = path.join(this.getAmplifyLibRoot(), packageName); | ||
if (!process.env.AMPLIFY_SUPPRESS_NO_PKG_LIB && !fs.pathExistsSync(result)) { | ||
throw new Error(`Package lib at ${result} does not exist. Try running 'amplify post-install' to copy files to the correct location.`); | ||
} | ||
return result; | ||
}; | ||
this.getAmplifyLibRoot = () => path.join(this.getHomeDotAmplifyDirPath(), 'lib'); | ||
this.getHomeDotAmplifyDirPath = () => this.homeDotAmplifyDirPath; | ||
@@ -53,0 +61,0 @@ this.getAmplifyDirPath = (projectPath) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName]); |
{ | ||
"name": "amplify-cli-core", | ||
"version": "1.4.1-alpha.14+a8118f28e", | ||
"version": "1.4.1-alpha.22+77132a208", | ||
"description": "Amplify CLI Core", | ||
@@ -58,3 +58,3 @@ "repository": { | ||
}, | ||
"gitHead": "a8118f28e440c9febd58269bd6e08425dd81f00c" | ||
"gitHead": "77132a20878c1abcd62f2d58c6f92c6df23400fd" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
139022
1544
10