Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/platform-core

Package Overview
Dependencies
Maintainers
9
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/platform-core - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

lib/errors/amplify_error.d.ts

@@ -31,3 +31,3 @@ /**

static fromStderr: (_stderr: string) => AmplifyError | undefined;
static fromError: (error: unknown) => AmplifyError<'UnknownFault' | 'CredentialsError' | 'InvalidCommandInputError' | 'DomainNotFoundError'>;
static fromError: (error: unknown) => AmplifyError<'UnknownFault' | 'CredentialsError' | 'InvalidCommandInputError' | 'DomainNotFoundError' | 'SyntaxError'>;
}

@@ -34,0 +34,0 @@ /**

@@ -115,2 +115,12 @@ "use strict";

}
/**
* catches SyntaxErrors that were somehow not instances of AmplifyError
* this can be removed once we can properly identify where AmplifyError is being stripped off
*/
if (error instanceof Error && isSyntaxError(error)) {
return new _1.AmplifyUserError('SyntaxError', {
message: error.message,
resolution: 'Check your backend definition in the `amplify` folder for syntax and type errors.',
}, error);
}
return new _1.AmplifyFault('UnknownFault', {

@@ -144,2 +154,5 @@ message: errorMessage,

};
const isSyntaxError = (err) => {
return !!err && err.name === 'SyntaxError';
};
const errorSerializer = (_, value) => {

@@ -172,2 +185,2 @@ if (value instanceof Error) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeV9lcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lcnJvcnMvYW1wbGlmeV9lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx3QkFBbUQ7QUFFbkQ7O0dBRUc7QUFDSCxNQUFzQixZQUF3QyxTQUFRLEtBQUs7SUF1QnZEO0lBQ0E7SUFDQztJQUNEO0lBekJYLGVBQWU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vclR5cGUgPT4ge1xuICAgIGlmIChcbiAgICAgIG9iaiAmJlxuICAgICAgKG9iaiBhcyBTZXJpYWxpemVkRXJyb3JUeXBlKS5uYW1lICYmXG4gICAgICAob2JqIGFzIFNlcmlhbGl6ZWRFcnJvclR5cGUpLm1lc3NhZ2VcbiAgICApXG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH07XG59XG50eXBlIFNlcmlhbGl6ZWRFcnJvclR5cGUgPSB7XG4gIG5hbWU6IHN0cmluZztcbiAgbWVzc2FnZTogc3RyaW5nO1xufTtcbiJdfQ==
{
"name": "@aws-amplify/platform-core",
"version": "1.0.5",
"version": "1.0.6",
"type": "commonjs",

@@ -27,3 +27,3 @@ "publishConfig": {

"dependencies": {
"@aws-amplify/plugin-types": "^1.1.1",
"@aws-amplify/plugin-types": "^1.2.1",
"@aws-sdk/client-sts": "^3.624.0",

@@ -30,0 +30,0 @@ "is-ci": "^3.0.1",

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