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

@graphcms/migration

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphcms/migration - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

20

lib/util.js

@@ -33,14 +33,16 @@ "use strict";

const query = `
{
_viewer {
project {
{
_viewer {
... on TokenViewer {
project {
id
environments {
id
environments {
id
name
endpoint
}
name
endpoint
}
}
}
}
}
`;

@@ -164,2 +166,2 @@ const variables = {

exports.fetchMigration = fetchMigration;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQU1BOztHQUVHO0FBQ0gsSUFBSyxZQUlKO0FBSkQsV0FBSyxZQUFZO0lBQ2YsbURBQVUsQ0FBQTtJQUNWLG1EQUFNLENBQUE7SUFDTixtREFBTSxDQUFBO0FBQ1IsQ0FBQyxFQUpJLFlBQVksS0FBWixZQUFZLFFBSWhCO0FBNktDLG9DQUFZO0FBM0tkOztHQUVHO0FBQ0gsSUFBSyxZQUtKO0FBTEQsV0FBSyxZQUFZO0lBQ2YsdURBQVksQ0FBQTtJQUNaLHlEQUFTLENBQUE7SUFDVCx5REFBUyxDQUFBO0lBQ1QsMkRBQVUsQ0FBQTtBQUNaLENBQUMsRUFMSSxZQUFZLEtBQVosWUFBWSxRQUtoQjtBQW9LQyxvQ0FBWTtBQWxLZDs7OztHQUlHO0FBQ0gsS0FBSyxVQUFVLGdCQUFnQixDQUM3QixNQUFxQixFQUNyQixRQUFnQjs7SUFFaEIsTUFBTSxLQUFLLEdBQUc7Ozs7Ozs7Ozs7Ozs7S0FhWCxDQUFDO0lBRUosTUFBTSxTQUFTLEdBQU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ICAgZmluaXNoZWRBdFxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgIGA7XG5cbiAgY29uc3QgdmFyaWFibGVzID0ge1xuICAgIHByb2plY3RJZDogYXJncy5wcm9qZWN0SWQsXG4gICAgbWlncmF0aW9uSWQ6IGFyZ3MubWlncmF0aW9uSWQsXG4gICAgZW52aXJvbm1lbnROYW1lOiBhcmdzLmVudmlyb25tZW50TmFtZSxcbiAgfTtcblxuICB0cnkge1xuICAgIGNvbnN0IG5vdEZvdW5kID0gYG1pZ3JhdGlvbiB3aXRoIGlkICcke2FyZ3MubWlncmF0aW9uSWR9JyBub3QgZm91bmRgO1xuICAgIGNvbnN0IHJlcyA9IGF3YWl0IGNsaWVudC5yZXF1ZXN0KHF1ZXJ5LCB2YXJpYWJsZXMpO1xuICAgIGNvbnN0IG1pZ3JhdGlvbiA9IHJlcz8udmlld2VyPy5wcm9qZWN0Py5lbnZpcm9ubWVudD8ubWlncmF0aW9uO1xuICAgIGlmICghbWlncmF0aW9uKSB7XG4gICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3Qobm90Rm91bmQpO1xuICAgIH1cbiAgICByZXR1cm4gbWlncmF0aW9uO1xuICB9IGNhdGNoIChlKSB7XG4gICAgcmV0dXJuIFByb21pc2UucmVqZWN0KGUpO1xuICB9XG59XG5cbmV4cG9ydCB7XG4gIFBhcnRpYWxCeSxcbiAgTXV0YXRpb25Nb2RlLFxuICBSZWxhdGlvblR5cGUsXG4gIGZldGNoRW52aXJvbm1lbnQsXG4gIGZldGNoTWlncmF0aW9uLFxuICBGZXRjaE1pZ3JhdGlvbkFyZ3MsXG4gIHN1Ym1pdE1pZ3JhdGlvbixcbn07XG4iXX0=
{
"name": "@graphcms/migration",
"version": "0.0.7",
"version": "0.0.8",
"description": "SDK for GraphCMS migrations",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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