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

graphql-transformer-core

Package Overview
Dependencies
Maintainers
12
Versions
994
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-transformer-core - npm Package Compare versions

Comparing version 8.2.2 to 8.2.3

5

API.md

@@ -115,5 +115,2 @@ ## API Report File for "graphql-transformer-core"

// @public (undocumented)
export const constructDataSourceMap: (schema: string, datasourceType: DataSourceType) => Map<string, DataSourceType>;
// @public (undocumented)
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy;

@@ -132,3 +129,3 @@

// @public (undocumented)
export type DBType = 'DDB' | 'MySQL' | 'Postgres';
export type DBType = 'DYNAMODB' | 'MYSQL' | 'POSTGRES';

@@ -135,0 +132,0 @@ // Warning: (ae-forgotten-export) The symbol "ResolversFunctionsAndSchema" needs to be exported by the entry point index.d.ts

3

lib/util/transformConfig.d.ts

@@ -89,3 +89,3 @@ import { Template } from 'cloudform-types';

export declare const removeAmplifyInput: (schema: string) => SchemaReaderConfig;
export type DBType = 'DDB' | 'MySQL' | 'Postgres';
export type DBType = 'DYNAMODB' | 'MYSQL' | 'POSTGRES';
export interface DataSourceType {

@@ -101,4 +101,3 @@ dbType: DBType;

export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy;
export declare const constructDataSourceMap: (schema: string, datasourceType: DataSourceType) => Map<string, DataSourceType>;
export {};
//# sourceMappingURL=transformConfig.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.constructDataSourceMap = exports.DynamoDBProvisionStrategy = exports.removeAmplifyInput = exports.readSchema = exports.loadProject = exports.isDataStoreEnabled = exports.writeConfig = exports.loadConfig = exports.ConflictHandlerType = exports.TRANSFORM_CURRENT_VERSION = exports.TRANSFORM_BASE_VERSION = exports.TRANSFORM_CONFIG_FILE_NAME = void 0;
exports.DynamoDBProvisionStrategy = exports.removeAmplifyInput = exports.readSchema = exports.loadProject = exports.isDataStoreEnabled = exports.writeConfig = exports.loadConfig = exports.ConflictHandlerType = exports.TRANSFORM_CURRENT_VERSION = exports.TRANSFORM_BASE_VERSION = exports.TRANSFORM_CONFIG_FILE_NAME = void 0;
const path = __importStar(require("path"));

@@ -185,4 +185,4 @@ const lodash_1 = __importDefault(require("lodash"));

? constructDataSourceType(getRDSDBTypeFromInput(amplifyType), false)
: constructDataSourceType('DDB');
modelToDatasourceMap = new Map([...modelToDatasourceMap.entries(), ...(0, exports.constructDataSourceMap)(fileSchema, datasourceType).entries()]);
: constructDataSourceType('DYNAMODB');
modelToDatasourceMap = new Map([...modelToDatasourceMap.entries(), ...constructDataSourceMap(fileSchema, datasourceType).entries()]);
if (amplifyType) {

@@ -198,7 +198,7 @@ amplifyInputType = mergeTypeFields(amplifyInputType, amplifyType);

else if (fs.existsSync(schemaDirectoryPath)) {
const datasourceType = constructDataSourceType('DDB');
const datasourceType = constructDataSourceType('DYNAMODB');
const schemaInDirectory = (await readSchemaDocuments(schemaDirectoryPath)).join('\n');
modelToDatasourceMap = new Map([
...modelToDatasourceMap.entries(),
...(0, exports.constructDataSourceMap)(schemaInDirectory, datasourceType).entries(),
...constructDataSourceMap(schemaInDirectory, datasourceType).entries(),
]);

@@ -225,5 +225,5 @@ schema += schemaInDirectory;

case 'mysql':
return 'MySQL';
return 'MYSQL';
case 'postgres':
return 'Postgres';
return 'POSTGRES';
default:

@@ -301,3 +301,2 @@ throw new Error(`engine ${engine} specified in the RDS schema file is not supported`);

};
exports.constructDataSourceMap = constructDataSourceMap;
//# sourceMappingURL=transformConfig.js.map
{
"name": "graphql-transformer-core",
"version": "8.2.2",
"version": "8.2.3",
"description": "A framework to transform from GraphQL SDL to AWS cloudFormation.",

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

"graphql": "^15.5.0",
"graphql-transformer-common": "4.26.2",
"graphql-transformer-common": "4.27.0",
"lodash": "^4.17.21"

@@ -62,5 +62,9 @@ },

}
}
},
"coverageReporters": [
"clover",
"text"
]
},
"gitHead": "4aa08fae3f0a4b953ef7267522ae537e7ff063ac"
"gitHead": "6e450d037cf84098b51ce787a99d6023cbc0e39d"
}

Sorry, the diff of this file is too big to display

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