amplify-cli-core
Advanced tools
Comparing version 1.24.0-flutter-preview.1 to 1.24.0
@@ -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', |
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
250090
2714
1
0
+ Added@colors/colors@1.6.0(transitive)
+ Added@dabh/diagnostics@2.0.3(transitive)
+ Added@types/triple-beam@1.3.5(transitive)
+ Addedamplify-cli-logger@1.1.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedcolorspace@1.1.4(transitive)
+ Addedenabled@2.0.0(transitive)
+ Addedfastq@1.19.0(transitive)
+ Addedfecha@4.2.3(transitive)
+ Addedfile-stream-rotator@0.6.1(transitive)
+ Addedfn.name@1.1.0(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedkuler@2.0.0(transitive)
+ Addedlogform@2.7.0(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addedobject-hash@2.2.0(transitive)
+ Addedone-time@1.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsemver@7.7.1(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedstack-trace@0.0.10(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtext-hex@1.0.0(transitive)
+ Addedtriple-beam@1.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwinston@3.17.0(transitive)
+ Addedwinston-daily-rotate-file@4.7.1(transitive)
+ Addedwinston-transport@4.9.0(transitive)
- Removedfastq@1.18.0(transitive)
- Removedsemver@7.7.0(transitive)
Updatedamplify-cli-logger@1.1.0