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

@apollographql/apollo-tools

Package Overview
Dependencies
Maintainers
7
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollographql/apollo-tools - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

34

package.json
{
"name": "@apollographql/apollo-tools",
"version": "0.4.1",
"version": "0.4.2",
"author": "Apollo GraphQL <opensource@apollographql.com>",

@@ -21,3 +21,33 @@ "license": "MIT",

},
"gitHead": "4eea9a99d77e426e5fd03594fadbb4ed6d716da4"
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": null,
"testRegex": "/__tests__/.*\\.test\\.(js|ts)$",
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/lib/"
],
"moduleFileExtensions": [
"ts",
"js"
],
"transformIgnorePatterns": [
"/node_modules/"
],
"setupFiles": [
"apollo-env"
],
"snapshotSerializers": [
"<rootDir>/src/__tests__/snapshotSerializers/astSerializer.ts",
"<rootDir>/src/__tests__/snapshotSerializers/graphQLTypeSerializer.ts"
],
"globals": {
"ts-jest": {
"tsConfig": "<rootDir>/tsconfig.test.json",
"diagnostics": true
}
}
},
"gitHead": "6d168194f3ee0563b4105b41a39f39d8c1fd80e8"
}

4

src/__tests__/buildServiceDefinition.test.ts
import gql from "graphql-tag";
import { buildServiceDefinition } from "../buildServiceDefinition";
import { GraphQLObjectType } from "graphql";
import { astSerializer, graphQLTypeSerializer } from "./snapshotSerializers";
expect.addSnapshotSerializer(astSerializer);
expect.addSnapshotSerializer(graphQLTypeSerializer);
describe("buildServiceDefinition", () => {

@@ -10,0 +6,0 @@ describe(`type definitions`, () => {

import { ASTNode, print } from "graphql";
import { Plugin, Config, Refs } from "pretty-format";
import { Plugin, Config, Refs, Printer } from "pretty-format";
export default {
export = {
test(value: any) {

@@ -15,3 +15,3 @@ return value && typeof value.kind === "string";

refs: Refs,
printer: any
printer: Printer
): string {

@@ -18,0 +18,0 @@ return (

import { isNamedType, GraphQLNamedType, printType } from "graphql";
import { Plugin, Config, Refs } from "pretty-format";
import { Plugin, Config, Refs, Printer } from "pretty-format";
export default {
export = {
test(value: any) {

@@ -15,3 +15,3 @@ return value && isNamedType(value);

refs: Refs,
printer: any
printer: Printer
): string {

@@ -18,0 +18,0 @@ return printType(value);

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