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

graphql-transformer-common

Package Overview
Dependencies
Maintainers
2
Versions
767
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-transformer-common - npm Package Compare versions

Comparing version 1.1.0-alpha.e0406dc1 to 1.1.0-alpha.e4bcdab5

lib/HttpResourceIDs.d.ts

72

CHANGELOG.md

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

<a name="1.0.32"></a>
## [1.0.32](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.32-beta.0...graphql-transformer-common@1.0.32) (2018-11-05)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.32-beta.0"></a>
## [1.0.32-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.32-beta.0) (2018-11-05)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.31"></a>
## [1.0.31](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.31) (2018-11-02)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.30"></a>
## [1.0.30](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.30-beta.0...graphql-transformer-common@1.0.30) (2018-11-02)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.30-beta.0"></a>
## [1.0.30-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.30-beta.0) (2018-11-02)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.29"></a>
## [1.0.29](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.29-beta.0...graphql-transformer-common@1.0.29) (2018-10-23)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.29-beta.0"></a>
## [1.0.29-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.29-beta.0) (2018-10-23)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.28"></a>
## [1.0.28](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.28-beta.0...graphql-transformer-common@1.0.28) (2018-10-18)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.28-beta.0"></a>
## [1.0.28-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.28-beta.0) (2018-10-12)
**Note:** Version bump only for package graphql-transformer-common
<a name="1.0.12"></a>

@@ -8,0 +80,0 @@ ## [1.0.12](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.11...graphql-transformer-common@1.0.12) (2018-08-23)

1

lib/index.d.ts

@@ -8,1 +8,2 @@ export * from './ResourceConstants';

export * from './nodeUtils';
export * from './HttpResourceIDs';

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

__export(require("./nodeUtils"));
__export(require("./HttpResourceIDs"));
//# sourceMappingURL=index.js.map

@@ -15,2 +15,5 @@ export declare class ModelResourceIDs {

static NonModelInputObjectName(typeName: string): string;
static UrlParamsInputObjectName(typeName: string, fieldName: string): string;
static HttpQueryInputObjectName(typeName: string, fieldName: string): string;
static HttpBodyInputObjectName(typeName: string, fieldName: string): string;
}

@@ -51,2 +51,11 @@ "use strict";

};
ModelResourceIDs.UrlParamsInputObjectName = function (typeName, fieldName) {
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'ParamsInput');
};
ModelResourceIDs.HttpQueryInputObjectName = function (typeName, fieldName) {
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'QueryInput');
};
ModelResourceIDs.HttpBodyInputObjectName = function (typeName, fieldName) {
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'BodyInput');
};
return ModelResourceIDs;

@@ -53,0 +62,0 @@ }());

@@ -56,3 +56,8 @@ export declare class ResourceConstants {

VersionedCondition: string;
IsDynamicGroupAuthorizedVariable: string;
IsLocalDynamicGroupAuthorizedVariable: string;
IsStaticGroupAuthorizedVariable: string;
IsOwnerAuthorizedVariable: string;
IsLocalOwnerAuthorizedVariable: string;
};
}

9

lib/ResourceConstants.js

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

AuthCognitoUserPoolNativeClientLogicalID: 'AuthCognitoUserPoolNativeClient',
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient'
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient',
};

@@ -71,3 +71,8 @@ ResourceConstants.PARAMETERS = {

AuthCondition: "authCondition",
VersionedCondition: "versionedCondition"
VersionedCondition: "versionedCondition",
IsDynamicGroupAuthorizedVariable: "isDynamicGroupAuthorized",
IsLocalDynamicGroupAuthorizedVariable: "isLocalDynamicGroupAuthorized",
IsStaticGroupAuthorizedVariable: "isStaticGroupAuthorized",
IsOwnerAuthorizedVariable: "isOwnerAuthorized",
IsLocalOwnerAuthorizedVariable: "isLocalOwnerAuthorized"
};

@@ -74,0 +79,0 @@ return ResourceConstants;

@@ -5,1 +5,2 @@ export declare function plurality(val: string): string;

export declare function toCamelCase(words: string[]): string;
export declare const NONE_VALUE = "___xamznone____";

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

exports.toCamelCase = toCamelCase;
exports.NONE_VALUE = '___xamznone____';
//# sourceMappingURL=util.js.map
{
"name": "graphql-transformer-common",
"version": "1.1.0-alpha.e0406dc1",
"version": "1.1.0-alpha.e4bcdab5",
"description": "Common code and constants for AppSync Transformers",

@@ -8,2 +8,3 @@ "main": "lib/index.js",

"test": "jest",
"test-ci": "jest --ci -i",
"build": "tsc",

@@ -22,4 +23,4 @@ "clean": "rm -rf ./lib"

"graphql": "^0.13.2",
"graphql-mapping-template": "^1.1.0-alpha.e0406dc1",
"graphql-transformer-core": "^1.1.0-alpha.e0406dc1"
"graphql-mapping-template": "^1.1.0-alpha.e4bcdab5",
"graphql-transformer-core": "^1.1.0-alpha.e4bcdab5"
},

@@ -26,0 +27,0 @@ "devDependencies": {

@@ -8,1 +8,2 @@ export * from './ResourceConstants'

export * from './nodeUtils'
export * from './HttpResourceIDs'

@@ -48,2 +48,11 @@ import { graphqlName, toUpper } from './util'

}
static UrlParamsInputObjectName(typeName: string, fieldName: string) {
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'ParamsInput')
}
static HttpQueryInputObjectName(typeName: string, fieldName: string) {
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'QueryInput')
}
static HttpBodyInputObjectName(typeName: string, fieldName: string) {
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'BodyInput')
}
}

@@ -0,1 +1,3 @@

import { graphqlName } from "./util";
export class ResolverResourceIDs {

@@ -2,0 +4,0 @@ static DynamoDBCreateResolverResourceID(typeName: string): string {

@@ -21,3 +21,3 @@ export class ResourceConstants {

AuthCognitoUserPoolNativeClientLogicalID: 'AuthCognitoUserPoolNativeClient',
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient'
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient',
}

@@ -78,4 +78,9 @@ public static PARAMETERS = {

AuthCondition: "authCondition",
VersionedCondition: "versionedCondition"
VersionedCondition: "versionedCondition",
IsDynamicGroupAuthorizedVariable: "isDynamicGroupAuthorized",
IsLocalDynamicGroupAuthorizedVariable: "isLocalDynamicGroupAuthorized",
IsStaticGroupAuthorizedVariable: "isStaticGroupAuthorized",
IsOwnerAuthorizedVariable: "isOwnerAuthorized",
IsLocalOwnerAuthorizedVariable: "isLocalOwnerAuthorized"
}
}

@@ -20,1 +20,3 @@ export function plurality(val: string): string {

}
export const NONE_VALUE = '___xamznone____'

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