New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amplify-cli-core

Package Overview
Dependencies
Maintainers
3
Versions
486
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplify-cli-core - npm Package Compare versions

Comparing version 1.22.1 to 1.23.0-alpha.0

lib/cliGetCategories.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.23.0-alpha.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.22.1...amplify-cli-core@1.23.0-alpha.0) (2021-05-22)
### Features
* lambda layers rework ([70b2f46](https://github.com/aws-amplify/amplify-cli/commit/70b2f46ee5cd645208c02c5919bc777e54411010))
## [1.22.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.22.0...amplify-cli-core@1.22.1) (2021-05-18)

@@ -8,0 +19,0 @@

19

lib/deploymentSecretsHelper.js

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

const lodash_1 = __importDefault(require("lodash"));
const recursiveOmit_1 = require("./utils/recursiveOmit");
const mergeDeploymentSecrets = (deploymentSecretsModifier) => {

@@ -25,3 +26,3 @@ const { currentDeploymentSecrets, category, rootStackId, envName, resource, keyName, value } = deploymentSecretsModifier;

if (secretsByAppId) {
recursiveOmit(secretsByAppId.environments, [envName, category, resource, keyName]);
recursiveOmit_1.recursiveOmit(secretsByAppId.environments, [envName, category, resource, keyName]);
if (Object.keys(secretsByAppId.environments).length === 0) {

@@ -34,18 +35,2 @@ currentDeploymentSecrets.appSecrets = currentDeploymentSecrets.appSecrets.filter(r => r.rootStackId !== rootStackId);

exports.removeFromDeploymentSecrets = removeFromDeploymentSecrets;
const recursiveOmit = (obj, path) => {
if (path.length === 0)
return;
const currentKey = path[0];
if (path.length === 1 && !!obj[currentKey]) {
delete obj[currentKey];
return;
}
if (!obj[currentKey]) {
return;
}
recursiveOmit(obj[currentKey], path.slice(1));
if (obj[currentKey] && lodash_1.default.isEmpty(obj[currentKey])) {
delete obj[currentKey];
}
};
//# sourceMappingURL=deploymentSecretsHelper.js.map

@@ -20,2 +20,4 @@ import { ServiceSelection } from './serviceSelection';

export * from './banner-message';
export * from './cliGetCategories';
export * from './cliRemoveResourcePrompt';
export declare type $TSAny = any;

@@ -129,3 +131,3 @@ export declare type $TSContext = {

deleteProject: () => $TSAny;
executeProviderUtils: () => $TSAny;
executeProviderUtils: (context: $TSContext, providerName: string, utilName: string, options: $TSAny) => $TSAny;
getAllEnvs: () => string[];

@@ -149,3 +151,3 @@ getPlugin: () => $TSAny;

makeId: (n?: number) => string;
openEditor: () => $TSAny;
openEditor: (context: $TSContext, target: string, waitToContinue?: boolean) => Promise<void>;
onCategoryOutputsChange: (context: $TSContext, currentAmplifyMeta: $TSMeta | undefined, amplifyMeta?: $TSMeta) => $TSAny;

@@ -162,3 +164,3 @@ pathManager: $TSAny;

removeDeploymentSecrets: (context: $TSContext, category: string, resource: string) => void;
removeResource: () => $TSAny;
removeResource: (context: $TSContext, category: string, resource: string) => $TSAny;
sharedQuestions: () => $TSAny;

@@ -180,3 +182,6 @@ showAllHelp: () => $TSAny;

updateamplifyMetaAfterBuild: (resource: ResourceTuple, buildType?: string) => void;
updateAmplifyMetaAfterPackage: (resource: ResourceTuple, zipFilename: string) => void;
updateAmplifyMetaAfterPackage: (resource: ResourceTuple, zipFilename: string, hash?: {
resourceKey: string;
hashValue: string;
}) => void;
updateBackendConfigAfterResourceAdd: (category: string, resourceName: string, resourceData: $TSAny) => $TSAny;

@@ -202,3 +207,3 @@ updateBackendConfigAfterResourceUpdate: () => $TSAny;

writeObjectAsJson: () => $TSAny;
hashDir: () => $TSAny;
hashDir: (dir: string, exclude: string[]) => Promise<string>;
leaveBreadcrumbs: (category: string, resourceName: string, breadcrumbs: unknown) => void;

@@ -205,0 +210,0 @@ readBreadcrumbs: (category: string, resourceName: string) => $TSAny;

@@ -32,2 +32,4 @@ "use strict";

__exportStar(require("./banner-message"), exports);
__exportStar(require("./cliGetCategories"), exports);
__exportStar(require("./cliRemoveResourcePrompt"), exports);
var AmplifyFrontend;

@@ -34,0 +36,0 @@ (function (AmplifyFrontend) {

@@ -50,3 +50,4 @@ export declare const PathConstants: {

getCurrentTagFilePath: (projectPath?: string | undefined) => string;
getResourceParamatersFilePath: (projectPath: string | undefined, category: string, resourceName: string) => string;
getResourceDirectoryPath: (projectPath: string | undefined, category: string, resourceName: string) => string;
getResourceParametersFilePath: (projectPath: string | undefined, category: string, resourceName: string) => string;
getReadMeFilePath: (projectPath?: string | undefined) => string;

@@ -53,0 +54,0 @@ getCurrentAmplifyMetaFilePath: (projectPath?: string | undefined) => string;

@@ -79,19 +79,6 @@ "use strict";

this.getBackendConfigFilePath = (projectPath) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.BackendDirName, exports.PathConstants.BackendConfigFileName]);
this.getTagFilePath = (projectPath) => {
return this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.BackendDirName, exports.PathConstants.TagsFileName]);
};
this.getCurrentTagFilePath = (projectPath) => {
return this.constructPath(projectPath, [
exports.PathConstants.AmplifyDirName,
exports.PathConstants.CurrentCloudBackendDirName,
exports.PathConstants.TagsFileName,
]);
};
this.getResourceParamatersFilePath = (projectPath, category, resourceName) => this.constructPath(projectPath, [
exports.PathConstants.AmplifyDirName,
exports.PathConstants.BackendDirName,
category,
resourceName,
exports.PathConstants.ParametersJsonFileName,
]);
this.getTagFilePath = (projectPath) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.BackendDirName, exports.PathConstants.TagsFileName]);
this.getCurrentTagFilePath = (projectPath) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.CurrentCloudBackendDirName, exports.PathConstants.TagsFileName]);
this.getResourceDirectoryPath = (projectPath, category, resourceName) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.BackendDirName, category, resourceName]);
this.getResourceParametersFilePath = (projectPath, category, resourceName) => path.join(this.getResourceDirectoryPath(projectPath, category, resourceName), exports.PathConstants.ParametersJsonFileName);
this.getReadMeFilePath = (projectPath) => this.constructPath(projectPath, [exports.PathConstants.AmplifyDirName, exports.PathConstants.ReadMeFileName]);

@@ -98,0 +85,0 @@ this.getCurrentAmplifyMetaFilePath = (projectPath) => this.constructPath(projectPath, [

@@ -107,3 +107,3 @@ "use strict";

this.getResourceParametersJson = (projectPath, category, resourceName, options) => {
const filePath = pathManager_1.pathManager.getResourceParamatersFilePath(projectPath, category, resourceName);
const filePath = pathManager_1.pathManager.getResourceParametersFilePath(projectPath, category, resourceName);
const mergedOptions = {

@@ -179,3 +179,3 @@ throwIfNotExist: true,

this.setResourceParametersJson = (projectPath, category, resourceName, parameters) => {
const filePath = pathManager_1.pathManager.getResourceParamatersFilePath(projectPath, category, resourceName);
const filePath = pathManager_1.pathManager.getResourceParametersFilePath(projectPath, category, resourceName);
jsonUtilities_1.JSONUtilities.writeJson(filePath, parameters);

@@ -182,0 +182,0 @@ };

export * from './open';
export * from './packageManager';
export * from './recursiveOmit';
//# sourceMappingURL=index.d.ts.map

@@ -14,2 +14,4 @@ "use strict";

__exportStar(require("./open"), exports);
__exportStar(require("./packageManager"), exports);
__exportStar(require("./recursiveOmit"), exports);
//# sourceMappingURL=index.js.map
{
"name": "amplify-cli-core",
"version": "1.22.1",
"version": "1.23.0-alpha.0",
"description": "Amplify CLI Core",

@@ -32,3 +32,5 @@ "repository": {

"dotenv": "^8.2.0",
"folder-hash": "^4.0.1",
"fs-extra": "^8.1.0",
"globby": "^11.0.3",
"hjson": "^3.2.1",

@@ -40,5 +42,7 @@ "js-yaml": "^4.0.0",

"proxy-agent": "^4.0.1",
"semver": "^7.3.5"
"semver": "^7.3.5",
"which": "^2.0.2"
},
"devDependencies": {
"@types/folder-hash": "^4.0.0",
"@types/fs-extra": "^8.0.1",

@@ -51,3 +55,3 @@ "@types/hjson": "^2.4.2",

"@types/uuid": "^8.0.0",
"amplify-function-plugin-interface": "1.7.2",
"amplify-function-plugin-interface": "1.8.0-alpha.0",
"nock": "^13.0.11",

@@ -71,3 +75,3 @@ "rimraf": "^3.0.0"

},
"gitHead": "708330f153c5bdfc656372da8189f7ebba97cd64"
"gitHead": "6028c2ea2d170dc167ef513c068ac29417bac77f"
}

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc