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.8 to 0.0.9

.watchmanconfig

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