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.20.1 to 1.21.0-beta.0

lib/cfnUtilities.d.ts

16

CHANGELOG.md

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

# [1.21.0-beta.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.20.1...amplify-cli-core@1.21.0-beta.0) (2021-04-23)
### Bug Fixes
* frontend flag not honoring passed in framework ([#7126](https://github.com/aws-amplify/amplify-cli/issues/7126)) (ref [#7046](https://github.com/aws-amplify/amplify-cli/issues/7046)) ([1e67fc9](https://github.com/aws-amplify/amplify-cli/commit/1e67fc9a2fab262334181bbb50cba91999e24c33))
### Features
* S3 SSE by default ([#7039](https://github.com/aws-amplify/amplify-cli/issues/7039)) (ref [#5708](https://github.com/aws-amplify/amplify-cli/issues/5708)) ([c1369ed](https://github.com/aws-amplify/amplify-cli/commit/c1369ed6f9c204c89ee2d4c805314a40d6eeaf92))
## [1.20.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.20.0...amplify-cli-core@1.20.1) (2021-04-19)

@@ -8,0 +24,0 @@

@@ -37,2 +37,7 @@ export declare class NotImplementedError extends Error {

}
export declare class UnrecognizedFrameworkError extends Error {
}
export declare class NotInitializedError extends Error {
constructor();
}
//# sourceMappingURL=index.d.ts.map

18

lib/errors/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppIdMismatchError = exports.AngularConfigNotFoundError = exports.SchemaDoesNotExistError = exports.AppAlreadyDeployedError = exports.AppNotFoundError = exports.TeamProviderInfoMigrateError = exports.FrontendBuildError = exports.InvalidSubCommandError = exports.InvalidEnvironmentNameError = exports.NonEmptyDirectoryError = exports.MissingParametersError = exports.EnvironmentDoesNotExistError = exports.UnknownArgumentError = exports.UnknownResourceTypeError = exports.ResourceCredentialsNotFoundError = exports.ResourceDoesNotExistError = exports.ResourceAlreadyExistsError = exports.NotImplementedError = void 0;
exports.NotInitializedError = exports.UnrecognizedFrameworkError = exports.AppIdMismatchError = exports.AngularConfigNotFoundError = exports.SchemaDoesNotExistError = exports.AppAlreadyDeployedError = exports.AppNotFoundError = exports.TeamProviderInfoMigrateError = exports.FrontendBuildError = exports.InvalidSubCommandError = exports.InvalidEnvironmentNameError = exports.NonEmptyDirectoryError = exports.MissingParametersError = exports.EnvironmentDoesNotExistError = exports.UnknownArgumentError = exports.UnknownResourceTypeError = exports.ResourceCredentialsNotFoundError = exports.ResourceDoesNotExistError = exports.ResourceAlreadyExistsError = exports.NotImplementedError = void 0;
class NotImplementedError extends Error {

@@ -58,2 +58,18 @@ }

exports.AppIdMismatchError = AppIdMismatchError;
class UnrecognizedFrameworkError extends Error {
}
exports.UnrecognizedFrameworkError = UnrecognizedFrameworkError;
class NotInitializedError extends Error {
constructor() {
super();
this.name = 'NotInitializedError';
this.message = `
No Amplify backend project files detected within this folder. Either initialize a new Amplify project or pull an existing project.
- "amplify init" to initialize a new Amplify project
- "amplify pull <app-id>" to pull your existing Amplify project. Find the <app-id> in the AWS Console or Amplify Admin UI.
`;
this.stack = undefined;
}
}
exports.NotInitializedError = NotInitializedError;
//# sourceMappingURL=index.js.map

3

lib/index.d.ts
import { ServiceSelection } from './serviceSelection';
export * from './cfnUtilities';
export * from './cliContext';

@@ -131,3 +132,3 @@ export * from './cliContextEnvironmentProvider';

getAllCategoryPluginInfo: (context: $TSContext) => $TSAny;
getFrontendPlugins: () => $TSAny;
getFrontendPlugins: (context: $TSContext) => $TSAny;
getEnvDetails: () => $TSAny;

@@ -134,0 +135,0 @@ getEnvInfo: () => $TSAny;

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

exports.AmplifyFrontend = void 0;
__exportStar(require("./cfnUtilities"), exports);
__exportStar(require("./cliContext"), exports);

@@ -16,0 +17,0 @@ __exportStar(require("./cliContextEnvironmentProvider"), exports);

@@ -63,5 +63,4 @@ export declare const PathConstants: {

findProjectRoot: () => string | undefined;
private createNotInitializedError;
}
export declare const pathManager: PathManager;
//# sourceMappingURL=pathManager.d.ts.map

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

const os_1 = require("os");
const errors_1 = require("../errors");
exports.PathConstants = {

@@ -123,3 +124,3 @@ DotAWSDirName: '.aws',

}
throw this.createNotInitializedError();
throw new errors_1.NotInitializedError();
};

@@ -148,8 +149,2 @@ this.validateProjectPath = (projectPath) => {

};
this.createNotInitializedError = () => {
const error = new Error("You are not working inside a valid Amplify project.\nUse 'amplify init' in the root of your app directory to initialize your project, or 'amplify pull' to pull down an existing project.");
error.name = 'NotInitialized';
error.stack = undefined;
return error;
};
this.homeDotAmplifyDirPath = path.join(os_1.homedir(), exports.PathConstants.DotAmplifyDirName);

@@ -156,0 +151,0 @@ }

{
"name": "amplify-cli-core",
"version": "1.20.1",
"version": "1.21.0-beta.0",
"description": "Amplify CLI Core",

@@ -30,5 +30,7 @@ "repository": {

"ci-info": "^2.0.0",
"cloudform-types": "^4.2.0",
"dotenv": "^8.2.0",
"fs-extra": "^8.1.0",
"hjson": "^3.2.1",
"js-yaml": "^4.0.0",
"lodash": "^4.17.19",

@@ -63,3 +65,3 @@ "open": "^7.3.1"

},
"gitHead": "174c21f2c892552b168d9e7e36b6e8e142111bbd"
"gitHead": "0996d59b4296223683e88a80b56c9ed37e5c55f5"
}

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