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

amplience-graphql-codegen-json

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplience-graphql-codegen-json - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

5

dist/index.d.ts

@@ -10,2 +10,7 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin-helpers';

hostname?: string;
/**
* The suffix for the schema file generated if needed
*
*/
schemaSuffix?: string;
};

@@ -12,0 +17,0 @@ declare type PresetConfig = {};

31

dist/index.js

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

module.exports = __toCommonJS(src_exports);
var import_path = require("path");
var import_amplience_graphql_codegen_common2 = require("amplience-graphql-codegen-common");
var import_change_case2 = require("change-case");
var import_path = require("path");

@@ -45,2 +45,5 @@ // src/lib/amplience-schema-transformers.ts

title: (0, import_change_case.capitalCase)(type.name.value),
properties: {
...objectProperties(type, schema, schemaHost)
},
description: ((_a2 = type.description) == null ? void 0 : _a2.value) ?? (0, import_change_case.capitalCase)(type.name.value),

@@ -51,10 +54,9 @@ "trait:sortable": sortableTrait(type),

type: "object",
properties: {
...objectProperties(type, schema, schemaHost)
},
propertyOrder: ((_b2 = type.fields) == null ? void 0 : _b2.filter(
(field) => ["ignoreAmplience", ...hierarchy ? ["children"] : []].every(
propertyOrder: ((_b2 = type.fields) == null ? void 0 : _b2.filter((field) => {
return ["ignoreAmplience", ...hierarchy ? ["children"] : []].every(
(term) => !(0, import_amplience_graphql_codegen_common.hasDirective)(field, term)
)
).map((field) => field.name.value)) ?? [],
);
}).map((field) => {
return field.name.value;
})) ?? [],
required: (_c = type.fields) == null ? void 0 : _c.filter(

@@ -64,3 +66,4 @@ (field) => ["ignoreAmplience", ...hierarchy ? ["children"] : []].every(

)
).filter((field) => field.type.kind === "NonNullType").map((n) => n.name.value)
).filter((field) => field.type.kind === "NonNullType").map((n) => n.name.value),
...hierarchy ? { allOf: [refType(AMPLIENCE_TYPE.CORE.HierarchyNode).allOf[0]] } : {}
};

@@ -72,3 +75,5 @@ };

((_a2 = type.fields) == null ? void 0 : _a2.filter(
(prop) => ["children", "ignoreAmplience"].every((term) => !(0, import_amplience_graphql_codegen_common.hasDirective)(prop, term))
(prop) => ["children", "ignoreAmplience"].every(
(term) => !(0, import_amplience_graphql_codegen_common.hasDirective)(prop, term)
)
).map((prop) => {

@@ -280,3 +285,3 @@ var _a3;

key: "default",
paths: items.map((n) => `/${n.name}`)
paths: items.map((n) => `/${n.name.value}`)
}

@@ -304,3 +309,3 @@ ]

const filterCombinations = (0, import_amplience_graphql_codegen_common.combinations)(
filterableProps.map((s) => `/${s.name}`)
filterableProps.map((s) => `/${s.name.value}`)
);

@@ -332,3 +337,3 @@ return {

node.name.value
)}.json`,
)}${options.config.schemaSuffix ? "-" + options.config.schemaSuffix : ""}.json`,
pluginContext: {

@@ -335,0 +340,0 @@ typeNode: node

{
"name": "amplience-graphql-codegen-json",
"author": "Lab Digital",
"version": "0.1.6",
"version": "0.1.8",
"private": false,

@@ -13,5 +13,2 @@ "license": "MIT",

],
"publishConfig": {
"directory": "dist"
},
"engines": {

@@ -30,7 +27,7 @@ "node": ">=16"

"@graphql-codegen/plugin-helpers": "^2.1.1",
"amplience-graphql-codegen-common": "^0.1.6",
"amplience-graphql-codegen-common": "^0.1.8",
"change-case": "^4.1.2",
"graphql": "^15.6.0"
"graphql": "^16.5.0"
},
"gitHead": "8ec548b31ea77c5bdde92f010d48d30f98be4a91"
}
{
"name": "amplience-graphql-codegen-json",
"author": "Lab Digital",
"version": "0.1.8",
"version": "0.2.0",
"private": false,

@@ -26,7 +26,7 @@ "license": "MIT",

"@graphql-codegen/plugin-helpers": "^2.1.1",
"amplience-graphql-codegen-common": "^0.1.8",
"amplience-graphql-codegen-common": "^0.2.0",
"change-case": "^4.1.2",
"graphql": "^15.6.0"
"graphql": "^16.5.0"
},
"gitHead": "4e2063ba1f4317c8f5895a07cfeac747abfa7e4a"
"gitHead": "b074ad9bbd2473ec1943b12ee46d8b7ce2e62928"
}

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

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