@teambit/cloud 0.0.462 → 0.0.464
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.cloud/cloud@0.0.
|
|
3
|
+
<testsuite name="teambit.cloud/cloud@0.0.464" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/dist/cloud.graphql.js
CHANGED
|
@@ -5,13 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.cloudSchema = cloudSchema;
|
|
7
7
|
function _graphqlTag() {
|
|
8
|
-
const data =
|
|
8
|
+
const data = require("graphql-tag");
|
|
9
9
|
_graphqlTag = function () {
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
16
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -19,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
18
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
19
|
function cloudSchema(cloud) {
|
|
21
20
|
return {
|
|
22
|
-
typeDefs: (0, _graphqlTag().
|
|
21
|
+
typeDefs: (0, _graphqlTag().gql)`
|
|
23
22
|
type CloudScope {
|
|
24
23
|
id: String!
|
|
25
24
|
icon: String
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_graphqlTag","data","
|
|
1
|
+
{"version":3,"names":["_graphqlTag","data","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","String","Symbol","toPrimitive","call","TypeError","Number","cloudSchema","cloud","typeDefs","gql","resolvers","CloudScope","id","scope","toString","Query","isLoggedIn","loginUrl","_","redirectUrl","getLoginUrl","getCurrentUser","user","getCloudScopes","ids","scopes","Mutation","logout"],"sources":["cloud.graphql.ts"],"sourcesContent":["import { gql } from 'graphql-tag';\nimport { Schema } from '@teambit/graphql';\nimport { ScopeDescriptor } from '@teambit/scopes.scope-descriptor';\nimport { CloudMain } from './cloud.main.runtime';\n\nexport function cloudSchema(cloud: CloudMain): Schema {\n return {\n typeDefs: gql`\n type CloudScope {\n id: String!\n icon: String\n backgroundIconColor: String\n stripColor: String\n displayName: String\n }\n type CloudUser {\n displayName: String\n username: String\n profileImage: String\n }\n type Query {\n getCurrentUser: CloudUser\n loginUrl(redirectUrl: String!): String!\n getCloudScopes(ids: [String!]): [CloudScope!]\n isLoggedIn: Boolean\n }\n type Mutation {\n logout: Boolean\n }\n `,\n resolvers: {\n CloudScope: {\n id: (scope?: ScopeDescriptor) => {\n return scope?.id.toString();\n },\n },\n Query: {\n isLoggedIn: () => {\n return cloud.isLoggedIn();\n },\n loginUrl: (_, { redirectUrl }: { redirectUrl?: string }) => {\n return cloud.getLoginUrl({ redirectUrl });\n },\n getCurrentUser: async () => {\n const user = await cloud.getCurrentUser();\n return {\n ...user,\n };\n },\n getCloudScopes: async (_, { ids }) => {\n const scopes = await cloud.getCloudScopes(ids);\n return scopes;\n },\n },\n Mutation: {\n logout: async () => {\n cloud.logout();\n return true;\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAkC,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,IAAAe,eAAA,CAAAhB,CAAA,EA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,SAAS,EAAE;MACTC,UAAU,EAAE;QACVC,EAAE,EAAGC,KAAuB,IAAK;UAC/B,OAAOA,KAAK,EAAED,EAAE,CAACE,QAAQ,CAAC,CAAC;QAC7B;MACF,CAAC;MACDC,KAAK,EAAE;QACLC,UAAU,EAAEA,CAAA,KAAM;UAChB,OAAOT,KAAK,CAACS,UAAU,CAAC,CAAC;QAC3B,CAAC;QACDC,QAAQ,EAAEA,CAACC,CAAC,EAAE;UAAEC;QAAsC,CAAC,KAAK;UAC1D,OAAOZ,KAAK,CAACa,WAAW,CAAC;YAAED;UAAY,CAAC,CAAC;QAC3C,CAAC;QACDE,cAAc,EAAE,MAAAA,CAAA,KAAY;UAC1B,MAAMC,IAAI,GAAG,MAAMf,KAAK,CAACc,cAAc,CAAC,CAAC;UACzC,OAAArC,aAAA,KACKsC,IAAI;QAEX,CAAC;QACDC,cAAc,EAAE,MAAAA,CAAOL,CAAC,EAAE;UAAEM;QAAI,CAAC,KAAK;UACpC,MAAMC,MAAM,GAAG,MAAMlB,KAAK,CAACgB,cAAc,CAACC,GAAG,CAAC;UAC9C,OAAOC,MAAM;QACf;MACF,CAAC;MACDC,QAAQ,EAAE;QACRC,MAAM,EAAE,MAAAA,CAAA,KAAY;UAClBpB,KAAK,CAACoB,MAAM,CAAC,CAAC;UACd,OAAO,IAAI;QACb;MACF;IACF;EACF,CAAC;AACH"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.464",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/cloud/cloud",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.cloud",
|
|
8
8
|
"name": "cloud",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.464"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"@teambit/scopes.scope-descriptor": "0.0.24",
|
|
21
21
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
22
22
|
"@teambit/design.controls.menu": "0.0.1",
|
|
23
|
-
"@teambit/graphql": "1.0.
|
|
24
|
-
"@teambit/cli": "0.0.
|
|
23
|
+
"@teambit/graphql": "1.0.188",
|
|
24
|
+
"@teambit/cli": "0.0.855",
|
|
25
25
|
"@teambit/cloud.models.cloud-scope": "0.0.3",
|
|
26
26
|
"@teambit/cloud.models.cloud-user": "0.0.5",
|
|
27
|
-
"@teambit/express": "0.0.
|
|
28
|
-
"@teambit/global-config": "0.0.
|
|
29
|
-
"@teambit/logger": "0.0.
|
|
30
|
-
"@teambit/scope": "1.0.
|
|
31
|
-
"@teambit/ui": "1.0.
|
|
32
|
-
"@teambit/workspace": "1.0.
|
|
27
|
+
"@teambit/express": "0.0.954",
|
|
28
|
+
"@teambit/global-config": "0.0.858",
|
|
29
|
+
"@teambit/logger": "0.0.948",
|
|
30
|
+
"@teambit/scope": "1.0.188",
|
|
31
|
+
"@teambit/ui": "1.0.188",
|
|
32
|
+
"@teambit/workspace": "1.0.188",
|
|
33
33
|
"@teambit/cloud.ui.user-bar": "0.0.6",
|
|
34
|
-
"@teambit/component": "1.0.
|
|
35
|
-
"@teambit/lanes": "1.0.
|
|
34
|
+
"@teambit/component": "1.0.188",
|
|
35
|
+
"@teambit/lanes": "1.0.188"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/express": "4.17.13",
|