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.24.0-flutter-preview.1 to 1.24.0

25

CHANGELOG.md

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

# [1.24.0-flutter-preview.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.23.0...amplify-cli-core@1.24.0-flutter-preview.0) (2021-06-18)
# [1.24.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.23.1...amplify-cli-core@1.24.0) (2021-06-30)
# 5.1.0 (2021-06-29)
### Bug Fixes
* [#7561](https://github.com/aws-amplify/amplify-cli/issues/7561) - auth trigger usage with user groups ([#7592](https://github.com/aws-amplify/amplify-cli/issues/7592)) ([d1d372e](https://github.com/aws-amplify/amplify-cli/commit/d1d372ee55d2fb1c15022642837c1f6fb6994ac8))
### Features
* **amplify-cli-core:** add feature flag for dart null safety support ([96a2fa8](https://github.com/aws-amplify/amplify-cli/commit/96a2fa84c60226e0193b816a07d811119d344641))
* **amplify-cli-core:** add FF for flutter null safety release ([#7607](https://github.com/aws-amplify/amplify-cli/issues/7607)) ([a65bfa9](https://github.com/aws-amplify/amplify-cli/commit/a65bfa99793a5d7d7106638d6fab4a40954a1ee9))
* configure env vars and secrets for lambda functions ([#7529](https://github.com/aws-amplify/amplify-cli/issues/7529)) ([fac354e](https://github.com/aws-amplify/amplify-cli/commit/fac354e5e26846e8b1499d3a4718b15983e0110f))

@@ -18,2 +28,13 @@

## [1.23.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.23.0...amplify-cli-core@1.23.1) (2021-06-24)
### Bug Fixes
* **graphql-transformer-common:** improve generated graphql pluralization ([#7258](https://github.com/aws-amplify/amplify-cli/issues/7258)) ([fc3ad0d](https://github.com/aws-amplify/amplify-cli/commit/fc3ad0dd5a12a7912c59ae12024f593b4cdf7f2d)), closes [#4224](https://github.com/aws-amplify/amplify-cli/issues/4224)
# [1.23.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.22.2...amplify-cli-core@1.23.0) (2021-06-15)

@@ -20,0 +41,0 @@

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

{
name: 'improvePluralization',
type: 'boolean',
defaultValueForExistingProjects: false,
defaultValueForNewProjects: true,
},
{
name: 'validateTypeNameReservedWords',

@@ -368,2 +374,14 @@ type: 'boolean',

{
name: 'emitAuthProvider',
type: 'boolean',
defaultValueForExistingProjects: false,
defaultValueForNewProjects: true,
},
{
name: 'generateIndexRules',
type: 'boolean',
defaultValueForExistingProjects: false,
defaultValueForNewProjects: true,
},
{
name: 'enableDartNullSafety',

@@ -370,0 +388,0 @@ type: 'boolean',

5

lib/index.d.ts

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

};
export declare type CategoryName = string;
export declare type ResourceName = string;
export declare type IContextPrint = {

@@ -161,5 +163,4 @@ info: (message: string) => void;

readJsonFile: () => $TSAny;
removeEnvFromCloud: () => $TSAny;
removeDeploymentSecrets: (context: $TSContext, category: string, resource: string) => void;
removeResource: (context: $TSContext, category: string, resource: string) => $TSAny;
removeResource: (context: $TSContext, category: string, resource: string, questionOptions?: $TSAny, resourceNameCallback?: (resourceName: string) => Promise<void>) => $TSAny;
sharedQuestions: () => $TSAny;

@@ -166,0 +167,0 @@ showAllHelp: () => $TSAny;

@@ -8,2 +8,6 @@ import { $TSMeta, $TSTeamProviderInfo, $TSAny, DeploymentSecrets } from '..';

};
export declare type ResourceEntry = {
resourceName: string;
resource: Record<string, object>;
};
export declare class StateManager {

@@ -47,2 +51,4 @@ metaFileExists: (projectPath?: string | undefined) => boolean;

setCLIJSON: (projectPath: string, cliJSON: any, env?: string | undefined) => void;
getResourceFromMeta: (amplifyMeta: Record<string, any>, categoryName: string, serviceName: string, resourceName?: string | undefined, throwIfNotExist?: boolean) => ResourceEntry | null;
private filterResourcesFromMeta;
private doesExist;

@@ -49,0 +55,0 @@ private getData;

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,2 +30,3 @@ exports.stateManager = exports.StateManager = void 0;

const jsonUtilities_1 = require("../jsonUtilities");
const lodash_1 = __importDefault(require("lodash"));
const cliConstants_1 = require("../cliConstants");

@@ -213,2 +217,37 @@ const tags_1 = require("../tags");

};
this.getResourceFromMeta = (amplifyMeta, categoryName, serviceName, resourceName, throwIfNotExist = true) => {
const resources = this.filterResourcesFromMeta(amplifyMeta, categoryName, serviceName, resourceName);
if (resources.length == 0) {
const withNamePart = resourceName ? `with name: ${resourceName} ` : '';
if (throwIfNotExist) {
throw new Error(`Resource for ${serviceName} service in ${categoryName} category, ${withNamePart}was not found.`);
}
else {
return null;
}
}
else if (resources.length > 1) {
throw new Error(`${resources.length} resources were found for ${serviceName} service in ${categoryName} category, but expected only 1.`);
}
return resources[0];
};
this.filterResourcesFromMeta = (amplifyMeta, categoryName, serviceName, resourceName) => {
const categoryResources = lodash_1.default.get(amplifyMeta, [categoryName]);
if (!categoryResources) {
return [];
}
const result = [];
for (const resourceKey of Object.keys(categoryResources)) {
if (categoryResources[resourceKey].service === serviceName && (!resourceName || (resourceName && resourceKey === resourceName))) {
result.push({
resourceName: resourceKey,
resource: categoryResources[resourceKey],
});
if (resourceName && result.length === 1) {
break;
}
}
}
return result;
};
this.doesExist = (filePathGetter, projectPath) => {

@@ -215,0 +254,0 @@ let path;

{
"name": "amplify-cli-core",
"version": "1.24.0-flutter-preview.1+def25777c",
"version": "1.24.0",
"description": "Amplify CLI Core",

@@ -28,3 +28,3 @@ "repository": {

"ajv": "^6.12.3",
"amplify-cli-logger": "1.1.1-flutter-preview.524+def25777c",
"amplify-cli-logger": "1.1.0",
"ci-info": "^2.0.0",

@@ -54,3 +54,3 @@ "cloudform-types": "^4.2.0",

"@types/uuid": "^8.0.0",
"amplify-function-plugin-interface": "1.8.1-flutter-preview.10+def25777c",
"amplify-function-plugin-interface": "1.9.0",
"nock": "^13.0.11",

@@ -74,3 +74,3 @@ "rimraf": "^3.0.0"

},
"gitHead": "def25777c52cacff0da7849e19dcae8428b84fcc"
"gitHead": "28d5a4797b556eb6ae15cb3e6682420d20b1b283"
}

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