Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const transform_1 = __importDefault(require("../src/transform"));
const body = `mutation RegisterGuest {\n  registerGuest {\n    responseCode\n    type\n    properties {\n      state {\n        statuscode\n        starttime\n        status\n      }\n    }\n    cookies\n  }\n}\n`;
const codeFixture = `
  r.loc.source = {
    body: \`${body}\`,
    name: "GraphQL request",
    locationOffset: { line: 1, column: 1 }
  }
`;
function go() {
    return __awaiter(this, void 0, void 0, function* () {
        const output = yield transform_1.default(codeFixture);
        console.log(output.code);
    });
}
go();
//# sourceMappingURL=debug.js.map