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

@accounts/graphql-client

Package Overview
Dependencies
Maintainers
5
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/graphql-client - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

2

lib/index.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("graphql-tag")):"function"==typeof define&&define.amd?define(["graphql-tag"],t):"object"==typeof exports?exports["@accounts/graphql-api"]=t(require("graphql-tag")):e["@accounts/graphql-api"]=t(e["graphql-tag"])}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},function(e,t){e.exports=require("graphql-tag")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.loginFieldsFragment=void 0;var o=u(["\n fragment LoginFields on LoginReturn {\n tokens {\n refreshToken\n accessToken\n }\n }\n "],["\n fragment LoginFields on LoginReturn {\n tokens {\n refreshToken\n accessToken\n }\n }\n "]),i=n(1),s=r(i);t.loginFieldsFragment=(0,s.default)(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(u,o){try{var i=t[u](o),s=i.value}catch(e){return void n(e)}return i.done?void e(s):Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLClient=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o(["",""],["",""]),c=n(1),f=r(c),l=n(5),d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),this.options=Object.assign({graphQLClient:null,userFieldsFragment:l.defaultUserFieldsFragment},t),this.options.userFieldsFragment=(0,f.default)(a,this.options.userFieldsFragment),!this.options.graphQLClient||!this.options.graphQLClient.query||!this.options.graphQLClient.mutate)throw new Error("Invalid GraphQL client provided: missing 'query' and 'mutate' methods!")}return s(e,[{key:"mutate",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.graphQLClient.mutate({mutation:t,variables:r}).then(function(e){var t=e.data;return t[n]}).catch(function(e){throw new Error(e.message)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"query",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.graphQLClient.query({query:t,variables:r}).then(function(e){var t=e.data;return t[n]}).catch(function(e){throw new Error(e.message)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"loginWithPassword",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,l.createLoginMutation)(this.options.userFieldsFragment),e.next=3,this.mutate(r,"loginWithPassword",{user:t,password:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"createUser",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.createUserMutation,"createUser",{user:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"refreshTokens",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,l.createRefreshTokenMutation)(this.options.userFieldsFragment),e.next=3,this.mutate(r,"refreshTokens",{accessToken:t,refreshToken:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"logout",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.logoutMutation,"logout",{accessToken:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"verifyEmail",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.verifyEmailMutation,"verifyEmail",{token:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"resetPassword",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.resetPasswordMutation,"resetPassword",{token:t,newPassword:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"sendVerificationEmail",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.sendVerificationEmailMutation,"sendVerificationEmail",{userId:t,email:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"sendResetPasswordEmail",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.sendResetPasswordEmailMutation,"sendResetPasswordEmail",{userId:t,email:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()}]),e}();t.GraphQLClient=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.createUserMutation=""},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var u=n(8);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(7);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=n(9);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var c=n(11);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var f=n(10);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var l=n(12);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.createLoginMutation=void 0;var o=u(["\n mutation($user: String!, $password: String!) {\n loginWithPassword(user: $user, password: $password) {\n sessionId\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n \n ","\n ","\n"],["\n mutation($user: String!, $password: String!) {\n loginWithPassword(user: $user, password: $password) {\n sessionId\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n \n ","\n ","\n"]),i=n(1),s=r(i),a=n(2);t.createLoginMutation=function(e){return(0,s.default)(o,e,a.loginFieldsFragment)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.logoutMutation=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.createRefreshTokenMutation=void 0;var o=u(["\n mutation($accessToken: String!, $refreshToken: String!) {\n refreshTokens(accessToken: $accessToken, refreshToken: $refreshToken) {\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n\n ","\n ","\n"],["\n mutation($accessToken: String!, $refreshToken: String!) {\n refreshTokens(accessToken: $accessToken, refreshToken: $refreshToken) {\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n\n ","\n ","\n"]),i=n(1),s=r(i),a=n(2);t.createRefreshTokenMutation=function(e){return(0,s.default)(o,e,a.loginFieldsFragment)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resetPasswordMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendResetPasswordEmailMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendVerificationEmailMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultUserFieldsFragment="\n fragment UserFields on User {\n email\n username\n }\n"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.verifyEmailMutation=""}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("graphql-tag")):"function"==typeof define&&define.amd?define(["graphql-tag"],t):"object"==typeof exports?exports["@accounts/graphql-api"]=t(require("graphql-tag")):e["@accounts/graphql-api"]=t(e["graphql-tag"])}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},function(e,t){e.exports=require("graphql-tag")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.loginFieldsFragment=void 0;var o=u(["\n fragment LoginFields on LoginReturn {\n tokens {\n refreshToken\n accessToken\n }\n }\n "],["\n fragment LoginFields on LoginReturn {\n tokens {\n refreshToken\n accessToken\n }\n }\n "]),i=n(1),s=r(i);t.loginFieldsFragment=(0,s.default)(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(u,o){try{var i=t[u](o),s=i.value}catch(e){return void n(e)}return i.done?void e(s):Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLClient=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o(["",""],["",""]),c=n(1),f=r(c),l=n(5),d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),this.options=Object.assign({graphQLClient:null,userFieldsFragment:l.defaultUserFieldsFragment},t),this.options.userFieldsFragment=(0,f.default)(a,this.options.userFieldsFragment),!this.options.graphQLClient||!this.options.graphQLClient.query||!this.options.graphQLClient.mutate)throw new Error("Invalid GraphQL client provided: missing 'query' and 'mutate' methods!")}return s(e,[{key:"mutate",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.graphQLClient.mutate({mutation:t,variables:r}).then(function(e){var t=e.data;return t[n]}).catch(function(e){throw new Error(e.message)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"query",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.graphQLClient.query({query:t,variables:r}).then(function(e){var t=e.data;return t[n]}).catch(function(e){throw new Error(e.message)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"loginWithPassword",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,l.createLoginMutation)(this.options.userFieldsFragment),e.next=3,this.mutate(r,"loginWithPassword",{user:t,password:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"createUser",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.createUserMutation,"createUser",{user:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"refreshTokens",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,l.createRefreshTokenMutation)(this.options.userFieldsFragment),e.next=3,this.mutate(r,"refreshTokens",{accessToken:t,refreshToken:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"logout",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.logoutMutation,"logout",{accessToken:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"verifyEmail",value:function(){function e(e){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.verifyEmailMutation,"verifyEmail",{token:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"resetPassword",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.resetPasswordMutation,"resetPassword",{token:t,newPassword:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"sendVerificationEmail",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.sendVerificationEmailMutation,"sendVerificationEmail",{userId:t,email:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"sendResetPasswordEmail",value:function(){function e(e,n){return t.apply(this,arguments)}var t=u(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mutate(l.sendResetPasswordEmailMutation,"sendResetPasswordEmail",{userId:t,email:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return e}()}]),e}();t.GraphQLClient=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.createUserMutation=""},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var u=n(8);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(7);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=n(9);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var c=n(11);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var f=n(10);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var l=n(12);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.createLoginMutation=void 0;var o=u(["\n mutation($user: String!, $password: String!) {\n loginWithPassword(user: $user, password: $password) {\n sessionId\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n \n ","\n ","\n"],["\n mutation($user: String!, $password: String!) {\n loginWithPassword(user: $user, password: $password) {\n sessionId\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n \n ","\n ","\n"]),i=n(1),s=r(i),a=n(2);t.createLoginMutation=function(e){return(0,s.default)(o,e,a.loginFieldsFragment)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.logoutMutation=void 0;var o=u(["\n mutation logout($accessToken: String!) {\n logout(accessToken: $accessToken)\n }\n"],["\n mutation logout($accessToken: String!) {\n logout(accessToken: $accessToken)\n }\n"]),i=n(1),s=r(i);t.logoutMutation=(0,s.default)(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.createRefreshTokenMutation=void 0;var o=u(["\n mutation($accessToken: String!, $refreshToken: String!) {\n refreshTokens(accessToken: $accessToken, refreshToken: $refreshToken) {\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n\n ","\n ","\n"],["\n mutation($accessToken: String!, $refreshToken: String!) {\n refreshTokens(accessToken: $accessToken, refreshToken: $refreshToken) {\n ...LoginFields\n user {\n id\n ...UserFields\n }\n }\n }\n\n ","\n ","\n"]),i=n(1),s=r(i),a=n(2);t.createRefreshTokenMutation=function(e){return(0,s.default)(o,e,a.loginFieldsFragment)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resetPasswordMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendResetPasswordEmailMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendVerificationEmailMutation=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultUserFieldsFragment="\n fragment UserFields on User {\n email\n username\n }\n"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.verifyEmailMutation=""}])});
{
"name": "@accounts/graphql-client",
"version": "0.0.6",
"version": "0.0.8",
"description": "GraphQL client transport for accounts",

@@ -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