apollo-codegen-typescript
Advanced tools
Comparing version 0.32.12-alpha.0 to 0.33.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path = require("path"); | ||
const t = require("@babel/types"); | ||
const path_1 = __importDefault(require("path")); | ||
const t = __importStar(require("@babel/types")); | ||
const common_tags_1 = require("common-tags"); | ||
@@ -9,4 +19,4 @@ const graphql_1 = require("graphql"); | ||
const collectAndMergeFields_1 = require("apollo-codegen-core/lib/compiler/visitors/collectAndMergeFields"); | ||
const language_1 = require("./language"); | ||
const printer_1 = require("./printer"); | ||
const language_1 = __importDefault(require("./language")); | ||
const printer_1 = __importDefault(require("./printer")); | ||
const definition_1 = require("graphql/type/definition"); | ||
@@ -50,3 +60,3 @@ const graphql_2 = require("graphql"); | ||
if (typesUsed.length > 0) { | ||
const relative = path.relative(path.dirname(outputPath), path.join(path.dirname(globalSourcePath), path.basename(globalSourcePath, ".ts"))); | ||
const relative = path_1.default.relative(path_1.default.dirname(outputPath), path_1.default.join(path_1.default.dirname(globalSourcePath), path_1.default.basename(globalSourcePath, ".ts"))); | ||
generator.printer.enqueue(generator.import(typesUsed, "./" + printing_1.unifyPaths(relative))); | ||
@@ -53,0 +63,0 @@ } |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const graphql_1 = require("graphql"); | ||
const t = require("@babel/types"); | ||
const t = __importStar(require("@babel/types")); | ||
const builtInScalarMap = { | ||
@@ -6,0 +13,0 @@ [graphql_1.GraphQLString.name]: t.TSStringKeyword(), |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,3 +13,3 @@ const printing_1 = require("apollo-codegen-core/lib/utilities/printing"); | ||
const helpers_1 = require("./helpers"); | ||
const t = require("@babel/types"); | ||
const t = __importStar(require("@babel/types")); | ||
class TypescriptGenerator { | ||
@@ -9,0 +16,0 @@ constructor(compilerOptions) { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const generator_1 = require("@babel/generator"); | ||
const generator_1 = __importDefault(require("@babel/generator")); | ||
class Printer { | ||
@@ -5,0 +8,0 @@ constructor() { |
{ | ||
"name": "apollo-codegen-typescript", | ||
"description": "TypeScript generator module for Apollo Codegen", | ||
"version": "0.32.12-alpha.0", | ||
"version": "0.33.0", | ||
"author": "Apollo GraphQL <opensource@apollographql.com>", | ||
@@ -20,5 +20,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/generator": "7.3.4", | ||
"@babel/types": "7.3.4", | ||
"apollo-codegen-core": "0.32.11-alpha.0", | ||
"@babel/generator": "7.4.0", | ||
"@babel/types": "7.4.0", | ||
"apollo-codegen-core": "0.33.0", | ||
"apollo-env": "0.4.0", | ||
@@ -59,3 +59,3 @@ "change-case": "^3.0.1", | ||
}, | ||
"gitHead": "31eb64c1b0bc7a524f614062e7c9a5c51f688772" | ||
"gitHead": "9b97155ca9c4f46c6685df79707999aebcb3d516" | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as path from "path"; | ||
import path from "path"; | ||
import * as t from "@babel/types"; | ||
@@ -3,0 +3,0 @@ import { stripIndent } from "common-tags"; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
351661
33
2373
+ Added@babel/generator@7.4.0(transitive)
+ Added@babel/types@7.4.0(transitive)
+ Addedapollo-codegen-core@0.33.0(transitive)
+ Addedapollo-language-server@1.6.0(transitive)
+ Addeddotenv@7.0.0(transitive)
- Removed@babel/generator@7.3.4(transitive)
- Removed@babel/types@7.3.4(transitive)
- Removedapollo-codegen-core@0.32.11-alpha.0(transitive)
- Removedapollo-language-server@1.5.5-alpha.0(transitive)
- Removeddotenv@6.2.0(transitive)
Updated@babel/generator@7.4.0
Updated@babel/types@7.4.0
Updatedapollo-codegen-core@0.33.0