@zimbra/zimlet-cli 12.11.0 → 13.0.0
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.
- package/.browserslistrc +1 -0
- package/dist/cli.js +11 -17
- package/dist/commands/create.js +206 -324
- package/dist/commands/package.js +62 -90
- package/dist/entry.js +14 -12
- package/dist/index.js +89 -114
- package/dist/lib/async-command.js +8 -14
- package/dist/lib/setup.js +55 -133
- package/dist/lib/webpack/transform-config.js +8 -8
- package/dist/shims/@apollo/client/index.js +92 -82
- package/dist/shims/@apollo/client/react/components/index.js +6 -6
- package/dist/shims/@apollo/client/react/hoc/index.js +8 -8
- package/dist/shims/@apollo/client/react/index.js +16 -16
- package/dist/shims/@zimbra-client/blocks/index.js +28 -28
- package/dist/shims/@zimbra-client/browser/index.js +4 -4
- package/dist/shims/@zimbra-client/components/index.js +53 -49
- package/dist/shims/@zimbra-client/constants/index.js +7 -7
- package/dist/shims/@zimbra-client/enhancers/index.js +11 -9
- package/dist/shims/@zimbra-client/errors/index.js +5 -5
- package/dist/shims/@zimbra-client/graphql/index.js +32 -26
- package/dist/shims/@zimbra-client/hooks/graphql/index.js +8 -8
- package/dist/shims/@zimbra-client/hooks/index.js +10 -6
- package/dist/shims/@zimbra-client/platform/index.js +5 -5
- package/dist/shims/@zimbra-client/util/contacts/index.js +4 -4
- package/dist/shims/@zimbra-client/util/index.js +15 -11
- package/dist/shims/@zimbra-client/util/redux/index.js +8 -8
- package/dist/shims/clipboard-polyfill/index.js +4 -4
- package/dist/shims/index.js +2 -2
- package/dist/shims/moment/index.js +43 -43
- package/dist/shims/preact/compat/index.js +40 -52
- package/dist/shims/preact/hooks/index.js +14 -14
- package/dist/shims/preact/index.js +15 -15
- package/dist/shims/preact-context-provider/index.js +6 -6
- package/dist/shims/preact-i18n/index.js +12 -12
- package/dist/shims/preact-pwa-install/index.js +3 -3
- package/dist/shims/preact-render-to-string/index.js +5 -5
- package/dist/shims/preact-router/index.js +9 -9
- package/dist/shims/preact-router/match/index.js +4 -4
- package/dist/shims/react-redux/index.js +16 -16
- package/dist/shims/recompose/index.js +46 -46
- package/dist/shims/redux-actions/index.js +9 -9
- package/dist/util.js +11 -11
- package/dist/zimlet-style-loader.js +8 -4
- package/package-lock.json +5460 -5944
- package/package.json +44 -47
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
-
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
exports.default = asyncCommand;
|
|
13
7
|
|
|
14
8
|
function done(err, result) {
|
|
15
9
|
if (err) {
|
|
@@ -22,14 +16,14 @@ function done(err, result) {
|
|
|
22
16
|
}
|
|
23
17
|
|
|
24
18
|
function asyncCommand(options) {
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, done);
|
|
19
|
+
return { ...options,
|
|
20
|
+
|
|
21
|
+
handler(argv) {
|
|
22
|
+
let r = options.handler(argv, done);
|
|
23
|
+
if (r && r.then) r.then(result => done(null, result), done);
|
|
31
24
|
}
|
|
32
|
-
|
|
25
|
+
|
|
26
|
+
};
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
module.exports = exports.default;
|
package/dist/lib/setup.js
CHANGED
|
@@ -3,155 +3,77 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.install = install;
|
|
7
6
|
exports.addScripts = addScripts;
|
|
8
7
|
exports.initGit = initGit;
|
|
8
|
+
exports.install = install;
|
|
9
9
|
|
|
10
10
|
var _crossSpawnPromise = _interopRequireDefault(require("cross-spawn-promise"));
|
|
11
11
|
|
|
12
12
|
var _util = require("../util");
|
|
13
13
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
15
|
-
|
|
16
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
|
-
|
|
18
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
15
|
|
|
20
16
|
function install(cwd, isYarn) {
|
|
21
|
-
|
|
22
|
-
return (0, _crossSpawnPromise
|
|
23
|
-
cwd
|
|
17
|
+
let cmd = isYarn ? 'yarn' : 'npm';
|
|
18
|
+
return (0, _crossSpawnPromise.default)(cmd, ['install'], {
|
|
19
|
+
cwd,
|
|
24
20
|
stdio: 'ignore'
|
|
25
21
|
});
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
function addScripts(
|
|
29
|
-
return
|
|
24
|
+
async function addScripts(obj, cwd, isYarn) {
|
|
25
|
+
return {
|
|
26
|
+
build: 'zimlet build',
|
|
27
|
+
watch: 'zimlet watch',
|
|
28
|
+
package: 'zimlet package'
|
|
29
|
+
};
|
|
30
30
|
} // Initializes the folder using `git init` and a proper `.gitignore` file
|
|
31
31
|
// if `git` is present in the $PATH.
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
cwd = target;
|
|
75
|
-
_context2.next = 5;
|
|
76
|
-
return (0, _crossSpawnPromise["default"])('git', ['init'], {
|
|
77
|
-
cwd: cwd
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
case 5:
|
|
81
|
-
_context2.next = 7;
|
|
82
|
-
return (0, _crossSpawnPromise["default"])('git', ['add', '-A'], {
|
|
83
|
-
cwd: cwd
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
case 7:
|
|
87
|
-
defaultGitUser = 'Zimlet CLI';
|
|
88
|
-
defaultGitEmail = 'zimlet-cli@users.noreply.github.com';
|
|
89
|
-
_context2.prev = 9;
|
|
90
|
-
_context2.next = 12;
|
|
91
|
-
return (0, _crossSpawnPromise["default"])('git', ['config', 'user.name']);
|
|
92
|
-
|
|
93
|
-
case 12:
|
|
94
|
-
gitUser = _context2.sent.toString();
|
|
95
|
-
_context2.next = 19;
|
|
96
|
-
break;
|
|
97
|
-
|
|
98
|
-
case 15:
|
|
99
|
-
_context2.prev = 15;
|
|
100
|
-
_context2.t0 = _context2["catch"](9);
|
|
101
|
-
(0, _util.warn)("Git config value of user.name not defined. Defaulting to ".concat(defaultGitUser, " for initial commit message."));
|
|
102
|
-
gitUser = defaultGitUser;
|
|
103
|
-
|
|
104
|
-
case 19:
|
|
105
|
-
_context2.prev = 19;
|
|
106
|
-
_context2.next = 22;
|
|
107
|
-
return (0, _crossSpawnPromise["default"])('git', ['config', 'user.email']);
|
|
108
|
-
|
|
109
|
-
case 22:
|
|
110
|
-
gitEmail = _context2.sent.toString();
|
|
111
|
-
_context2.next = 29;
|
|
112
|
-
break;
|
|
113
|
-
|
|
114
|
-
case 25:
|
|
115
|
-
_context2.prev = 25;
|
|
116
|
-
_context2.t1 = _context2["catch"](19);
|
|
117
|
-
(0, _util.warn)("Git config value of user.email not defined. Defaulting to ".concat(defaultGitEmail, " for initial commit message."));
|
|
118
|
-
gitEmail = defaultGitEmail;
|
|
119
|
-
|
|
120
|
-
case 29:
|
|
121
|
-
_context2.prev = 29;
|
|
122
|
-
_context2.next = 32;
|
|
123
|
-
return (0, _crossSpawnPromise["default"])('git', ['commit', '-m', 'initial commit from zimlet-cli'], {
|
|
124
|
-
cwd: cwd,
|
|
125
|
-
env: {
|
|
126
|
-
GIT_COMMITTER_NAME: gitUser,
|
|
127
|
-
GIT_COMMITTER_EMAIL: gitEmail,
|
|
128
|
-
GIT_AUTHOR_NAME: gitUser,
|
|
129
|
-
GIT_AUTHOR_EMAIL: gitEmail
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
case 32:
|
|
134
|
-
_context2.next = 37;
|
|
135
|
-
break;
|
|
136
|
-
|
|
137
|
-
case 34:
|
|
138
|
-
_context2.prev = 34;
|
|
139
|
-
_context2.t2 = _context2["catch"](29);
|
|
140
|
-
(0, _util.warn)("could not make initial git commit: ".concat(_context2.t2));
|
|
141
|
-
|
|
142
|
-
case 37:
|
|
143
|
-
_context2.next = 40;
|
|
144
|
-
break;
|
|
145
|
-
|
|
146
|
-
case 39:
|
|
147
|
-
(0, _util.warn)('Could not locate `git` binary in `$PATH`. Skipping!');
|
|
148
|
-
|
|
149
|
-
case 40:
|
|
150
|
-
case "end":
|
|
151
|
-
return _context2.stop();
|
|
34
|
+
async function initGit(target) {
|
|
35
|
+
let git = (0, _util.hasCommand)('git');
|
|
36
|
+
|
|
37
|
+
if (git) {
|
|
38
|
+
const cwd = target;
|
|
39
|
+
await (0, _crossSpawnPromise.default)('git', ['init'], {
|
|
40
|
+
cwd
|
|
41
|
+
});
|
|
42
|
+
await (0, _crossSpawnPromise.default)('git', ['add', '-A'], {
|
|
43
|
+
cwd
|
|
44
|
+
});
|
|
45
|
+
let gitUser, gitEmail;
|
|
46
|
+
const defaultGitUser = 'Zimlet CLI';
|
|
47
|
+
const defaultGitEmail = 'zimlet-cli@users.noreply.github.com';
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
gitUser = (await (0, _crossSpawnPromise.default)('git', ['config', 'user.name'])).toString();
|
|
51
|
+
} catch (e) {
|
|
52
|
+
(0, _util.warn)(`Git config value of user.name not defined. Defaulting to ${defaultGitUser} for initial commit message.`);
|
|
53
|
+
gitUser = defaultGitUser;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
try {
|
|
57
|
+
gitEmail = (await (0, _crossSpawnPromise.default)('git', ['config', 'user.email'])).toString();
|
|
58
|
+
} catch (e) {
|
|
59
|
+
(0, _util.warn)(`Git config value of user.email not defined. Defaulting to ${defaultGitEmail} for initial commit message.`);
|
|
60
|
+
gitEmail = defaultGitEmail;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
try {
|
|
64
|
+
await (0, _crossSpawnPromise.default)('git', ['commit', '-m', 'initial commit from zimlet-cli'], {
|
|
65
|
+
cwd,
|
|
66
|
+
env: {
|
|
67
|
+
GIT_COMMITTER_NAME: gitUser,
|
|
68
|
+
GIT_COMMITTER_EMAIL: gitEmail,
|
|
69
|
+
GIT_AUTHOR_NAME: gitUser,
|
|
70
|
+
GIT_AUTHOR_EMAIL: gitEmail
|
|
152
71
|
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
72
|
+
});
|
|
73
|
+
} catch (e) {
|
|
74
|
+
(0, _util.warn)(`could not make initial git commit: ${e}`);
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
(0, _util.warn)('Could not locate `git` binary in `$PATH`. Skipping!');
|
|
78
|
+
}
|
|
157
79
|
}
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = transformConfig;
|
|
7
7
|
|
|
8
8
|
var _path = _interopRequireDefault(require("path"));
|
|
9
9
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const defaultConfig = './zimlet.config.js';
|
|
13
13
|
|
|
14
14
|
function transformConfig(env, config) {
|
|
15
|
-
|
|
15
|
+
let transformerPath = _path.default.resolve(env.cwd, env.config || defaultConfig);
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
18
|
require.resolve(transformerPath);
|
|
19
19
|
} catch (err) {
|
|
20
20
|
if (env.config && env.config !== defaultConfig) {
|
|
21
|
-
console.warn(
|
|
21
|
+
console.warn(`zimlet-cli config could not be loaded!\nFile ${env.config} not found.`);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
return;
|
|
@@ -28,14 +28,14 @@ function transformConfig(env, config) {
|
|
|
28
28
|
presets: [require.resolve('@babel/preset-env')]
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
const m = require(transformerPath);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const transformer = m && m.default || m;
|
|
34
34
|
|
|
35
35
|
try {
|
|
36
36
|
transformer(config, Object.assign({}, env));
|
|
37
37
|
} catch (err) {
|
|
38
|
-
console.error(
|
|
38
|
+
console.error(`Error at ${transformerPath}: \n` + err);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.useSubscription = exports.useReactiveVar = exports.useQuery = exports.useMutation = exports.useLazyQuery = exports.useApolloClient = exports.toPromise = exports.throwServerError = exports.split = exports.setLogVerbosity = exports.serializeFetchParameter = exports.selectURI = exports.selectHttpOptionsAndBodyInternal = exports.selectHttpOptionsAndBody = exports.rewriteURIForGET = exports.resetCaches = exports.resetApolloContext = exports.parser = exports.parseAndCheckHttpResponse = exports.operationName = exports.mergeOptions = exports.makeVar = exports.makeReference = exports.isReference = exports.isApolloError = exports.gql = exports.getApolloContext = exports.fromPromise = exports.fromError = exports.from = exports.fallbackHttpConfig = exports.execute = exports.enableExperimentalFragmentVariables = exports.empty = exports.disableFragmentWarnings = exports.disableExperimentalFragmentVariables = exports.defaultPrinter = exports.defaultDataIdFromObject = exports.default = exports.createSignalIfSupported = exports.createHttpLink = exports.concat = exports.checkFetcher = exports.applyNextFetchPolicy = exports.ObservableQuery = exports.Observable = exports.NetworkStatus = exports.MissingFieldError = exports.InMemoryCache = exports.HttpLink = exports.DocumentType = exports.Cache = exports.ApolloProvider = exports.ApolloLink = exports.ApolloError = exports.ApolloConsumer = exports.ApolloClient = exports.ApolloCache = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,111 +13,121 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@apollo/client'], '@apollo/client');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const NetworkStatus = wrap('NetworkStatus');
|
|
19
19
|
exports.NetworkStatus = NetworkStatus;
|
|
20
|
-
|
|
21
|
-
exports.ApolloLink = ApolloLink;
|
|
22
|
-
var concat = wrap('concat');
|
|
23
|
-
exports.concat = concat;
|
|
24
|
-
var empty = wrap('empty');
|
|
25
|
-
exports.empty = empty;
|
|
26
|
-
var execute = wrap('execute');
|
|
27
|
-
exports.execute = execute;
|
|
28
|
-
var from = wrap('from');
|
|
29
|
-
exports.from = from;
|
|
30
|
-
var split = wrap('split');
|
|
31
|
-
exports.split = split;
|
|
32
|
-
var HttpLink = wrap('HttpLink');
|
|
33
|
-
exports.HttpLink = HttpLink;
|
|
34
|
-
var checkFetcher = wrap('checkFetcher');
|
|
35
|
-
exports.checkFetcher = checkFetcher;
|
|
36
|
-
var createHttpLink = wrap('createHttpLink');
|
|
37
|
-
exports.createHttpLink = createHttpLink;
|
|
38
|
-
var createSignalIfSupported = wrap('createSignalIfSupported');
|
|
39
|
-
exports.createSignalIfSupported = createSignalIfSupported;
|
|
40
|
-
var fallbackHttpConfig = wrap('fallbackHttpConfig');
|
|
41
|
-
exports.fallbackHttpConfig = fallbackHttpConfig;
|
|
42
|
-
var parseAndCheckHttpResponse = wrap('parseAndCheckHttpResponse');
|
|
43
|
-
exports.parseAndCheckHttpResponse = parseAndCheckHttpResponse;
|
|
44
|
-
var rewriteURIForGET = wrap('rewriteURIForGET');
|
|
45
|
-
exports.rewriteURIForGET = rewriteURIForGET;
|
|
46
|
-
var selectHttpOptionsAndBody = wrap('selectHttpOptionsAndBody');
|
|
47
|
-
exports.selectHttpOptionsAndBody = selectHttpOptionsAndBody;
|
|
48
|
-
var selectURI = wrap('selectURI');
|
|
49
|
-
exports.selectURI = selectURI;
|
|
50
|
-
var serializeFetchParameter = wrap('serializeFetchParameter');
|
|
51
|
-
exports.serializeFetchParameter = serializeFetchParameter;
|
|
52
|
-
var Observable = wrap('Observable');
|
|
20
|
+
const Observable = wrap('Observable');
|
|
53
21
|
exports.Observable = Observable;
|
|
54
|
-
|
|
22
|
+
const isReference = wrap('isReference');
|
|
55
23
|
exports.isReference = isReference;
|
|
56
|
-
|
|
24
|
+
const makeReference = wrap('makeReference');
|
|
57
25
|
exports.makeReference = makeReference;
|
|
58
|
-
|
|
59
|
-
exports.ApolloError = ApolloError;
|
|
60
|
-
var isApolloError = wrap('isApolloError');
|
|
61
|
-
exports.isApolloError = isApolloError;
|
|
62
|
-
var ApolloCache = wrap('ApolloCache');
|
|
26
|
+
const ApolloCache = wrap('ApolloCache');
|
|
63
27
|
exports.ApolloCache = ApolloCache;
|
|
64
|
-
|
|
28
|
+
const Cache = wrap('Cache');
|
|
65
29
|
exports.Cache = Cache;
|
|
66
|
-
|
|
30
|
+
const InMemoryCache = wrap('InMemoryCache');
|
|
67
31
|
exports.InMemoryCache = InMemoryCache;
|
|
68
|
-
|
|
32
|
+
const MissingFieldError = wrap('MissingFieldError');
|
|
69
33
|
exports.MissingFieldError = MissingFieldError;
|
|
70
|
-
|
|
34
|
+
const defaultDataIdFromObject = wrap('defaultDataIdFromObject');
|
|
71
35
|
exports.defaultDataIdFromObject = defaultDataIdFromObject;
|
|
72
|
-
|
|
36
|
+
const makeVar = wrap('makeVar');
|
|
73
37
|
exports.makeVar = makeVar;
|
|
74
|
-
|
|
38
|
+
const ApolloError = wrap('ApolloError');
|
|
39
|
+
exports.ApolloError = ApolloError;
|
|
40
|
+
const isApolloError = wrap('isApolloError');
|
|
41
|
+
exports.isApolloError = isApolloError;
|
|
42
|
+
const fromError = wrap('fromError');
|
|
75
43
|
exports.fromError = fromError;
|
|
76
|
-
|
|
44
|
+
const fromPromise = wrap('fromPromise');
|
|
77
45
|
exports.fromPromise = fromPromise;
|
|
78
|
-
|
|
46
|
+
const throwServerError = wrap('throwServerError');
|
|
79
47
|
exports.throwServerError = throwServerError;
|
|
80
|
-
|
|
48
|
+
const toPromise = wrap('toPromise');
|
|
81
49
|
exports.toPromise = toPromise;
|
|
82
|
-
|
|
83
|
-
exports.
|
|
84
|
-
|
|
85
|
-
exports.ApolloClient = ApolloClient;
|
|
86
|
-
var ObservableQuery = wrap('ObservableQuery');
|
|
87
|
-
exports.ObservableQuery = ObservableQuery;
|
|
88
|
-
var disableExperimentalFragmentVariables = wrap('disableExperimentalFragmentVariables');
|
|
50
|
+
const setLogVerbosity = wrap('setLogVerbosity');
|
|
51
|
+
exports.setLogVerbosity = setLogVerbosity;
|
|
52
|
+
const disableExperimentalFragmentVariables = wrap('disableExperimentalFragmentVariables');
|
|
89
53
|
exports.disableExperimentalFragmentVariables = disableExperimentalFragmentVariables;
|
|
90
|
-
|
|
54
|
+
const disableFragmentWarnings = wrap('disableFragmentWarnings');
|
|
91
55
|
exports.disableFragmentWarnings = disableFragmentWarnings;
|
|
92
|
-
|
|
56
|
+
const enableExperimentalFragmentVariables = wrap('enableExperimentalFragmentVariables');
|
|
93
57
|
exports.enableExperimentalFragmentVariables = enableExperimentalFragmentVariables;
|
|
94
|
-
|
|
58
|
+
const gql = wrap('gql');
|
|
59
|
+
exports.gql = gql;
|
|
60
|
+
const resetCaches = wrap('resetCaches');
|
|
95
61
|
exports.resetCaches = resetCaches;
|
|
96
|
-
|
|
97
|
-
exports.
|
|
98
|
-
|
|
99
|
-
exports.
|
|
100
|
-
|
|
101
|
-
exports.
|
|
102
|
-
|
|
103
|
-
exports.
|
|
104
|
-
|
|
105
|
-
exports.
|
|
106
|
-
|
|
107
|
-
exports.
|
|
108
|
-
|
|
62
|
+
const ApolloClient = wrap('ApolloClient');
|
|
63
|
+
exports.ApolloClient = ApolloClient;
|
|
64
|
+
const ObservableQuery = wrap('ObservableQuery');
|
|
65
|
+
exports.ObservableQuery = ObservableQuery;
|
|
66
|
+
const applyNextFetchPolicy = wrap('applyNextFetchPolicy');
|
|
67
|
+
exports.applyNextFetchPolicy = applyNextFetchPolicy;
|
|
68
|
+
const mergeOptions = wrap('mergeOptions');
|
|
69
|
+
exports.mergeOptions = mergeOptions;
|
|
70
|
+
const ApolloLink = wrap('ApolloLink');
|
|
71
|
+
exports.ApolloLink = ApolloLink;
|
|
72
|
+
const concat = wrap('concat');
|
|
73
|
+
exports.concat = concat;
|
|
74
|
+
const empty = wrap('empty');
|
|
75
|
+
exports.empty = empty;
|
|
76
|
+
const execute = wrap('execute');
|
|
77
|
+
exports.execute = execute;
|
|
78
|
+
const from = wrap('from');
|
|
79
|
+
exports.from = from;
|
|
80
|
+
const split = wrap('split');
|
|
81
|
+
exports.split = split;
|
|
82
|
+
const HttpLink = wrap('HttpLink');
|
|
83
|
+
exports.HttpLink = HttpLink;
|
|
84
|
+
const checkFetcher = wrap('checkFetcher');
|
|
85
|
+
exports.checkFetcher = checkFetcher;
|
|
86
|
+
const createHttpLink = wrap('createHttpLink');
|
|
87
|
+
exports.createHttpLink = createHttpLink;
|
|
88
|
+
const createSignalIfSupported = wrap('createSignalIfSupported');
|
|
89
|
+
exports.createSignalIfSupported = createSignalIfSupported;
|
|
90
|
+
const defaultPrinter = wrap('defaultPrinter');
|
|
91
|
+
exports.defaultPrinter = defaultPrinter;
|
|
92
|
+
const fallbackHttpConfig = wrap('fallbackHttpConfig');
|
|
93
|
+
exports.fallbackHttpConfig = fallbackHttpConfig;
|
|
94
|
+
const parseAndCheckHttpResponse = wrap('parseAndCheckHttpResponse');
|
|
95
|
+
exports.parseAndCheckHttpResponse = parseAndCheckHttpResponse;
|
|
96
|
+
const rewriteURIForGET = wrap('rewriteURIForGET');
|
|
97
|
+
exports.rewriteURIForGET = rewriteURIForGET;
|
|
98
|
+
const selectHttpOptionsAndBody = wrap('selectHttpOptionsAndBody');
|
|
99
|
+
exports.selectHttpOptionsAndBody = selectHttpOptionsAndBody;
|
|
100
|
+
const selectHttpOptionsAndBodyInternal = wrap('selectHttpOptionsAndBodyInternal');
|
|
101
|
+
exports.selectHttpOptionsAndBodyInternal = selectHttpOptionsAndBodyInternal;
|
|
102
|
+
const selectURI = wrap('selectURI');
|
|
103
|
+
exports.selectURI = selectURI;
|
|
104
|
+
const serializeFetchParameter = wrap('serializeFetchParameter');
|
|
105
|
+
exports.serializeFetchParameter = serializeFetchParameter;
|
|
106
|
+
const ApolloConsumer = wrap('ApolloConsumer');
|
|
109
107
|
exports.ApolloConsumer = ApolloConsumer;
|
|
110
|
-
|
|
108
|
+
const ApolloProvider = wrap('ApolloProvider');
|
|
111
109
|
exports.ApolloProvider = ApolloProvider;
|
|
112
|
-
|
|
110
|
+
const getApolloContext = wrap('getApolloContext');
|
|
113
111
|
exports.getApolloContext = getApolloContext;
|
|
114
|
-
|
|
112
|
+
const resetApolloContext = wrap('resetApolloContext');
|
|
115
113
|
exports.resetApolloContext = resetApolloContext;
|
|
116
|
-
|
|
114
|
+
const DocumentType = wrap('DocumentType');
|
|
117
115
|
exports.DocumentType = DocumentType;
|
|
118
|
-
|
|
116
|
+
const operationName = wrap('operationName');
|
|
119
117
|
exports.operationName = operationName;
|
|
120
|
-
|
|
118
|
+
const parser = wrap('parser');
|
|
121
119
|
exports.parser = parser;
|
|
120
|
+
const useApolloClient = wrap('useApolloClient');
|
|
121
|
+
exports.useApolloClient = useApolloClient;
|
|
122
|
+
const useLazyQuery = wrap('useLazyQuery');
|
|
123
|
+
exports.useLazyQuery = useLazyQuery;
|
|
124
|
+
const useMutation = wrap('useMutation');
|
|
125
|
+
exports.useMutation = useMutation;
|
|
126
|
+
const useQuery = wrap('useQuery');
|
|
127
|
+
exports.useQuery = useQuery;
|
|
128
|
+
const useReactiveVar = wrap('useReactiveVar');
|
|
129
|
+
exports.useReactiveVar = useReactiveVar;
|
|
130
|
+
const useSubscription = wrap('useSubscription');
|
|
131
|
+
exports.useSubscription = useSubscription;
|
|
122
132
|
var _default = global.shims['@apollo/client'];
|
|
123
|
-
exports
|
|
133
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = exports.Subscription = exports.Query = exports.Mutation = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../../");
|
|
9
9
|
|
|
@@ -13,13 +13,13 @@ var _ = require("../../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@apollo/client/react/components'], '@apollo/client/react/components');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const Mutation = wrap('Mutation');
|
|
19
19
|
exports.Mutation = Mutation;
|
|
20
|
-
|
|
20
|
+
const Query = wrap('Query');
|
|
21
21
|
exports.Query = Query;
|
|
22
|
-
|
|
22
|
+
const Subscription = wrap('Subscription');
|
|
23
23
|
exports.Subscription = Subscription;
|
|
24
24
|
var _default = global.shims['@apollo/client/react/components'];
|
|
25
|
-
exports
|
|
25
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.withSubscription = exports.withQuery = exports.withMutation = exports.withApollo = exports.graphql = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../../");
|
|
9
9
|
|
|
@@ -13,17 +13,17 @@ var _ = require("../../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@apollo/client/react/hoc'], '@apollo/client/react/hoc');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const graphql = wrap('graphql');
|
|
19
19
|
exports.graphql = graphql;
|
|
20
|
-
|
|
20
|
+
const withApollo = wrap('withApollo');
|
|
21
21
|
exports.withApollo = withApollo;
|
|
22
|
-
|
|
22
|
+
const withMutation = wrap('withMutation');
|
|
23
23
|
exports.withMutation = withMutation;
|
|
24
|
-
|
|
24
|
+
const withQuery = wrap('withQuery');
|
|
25
25
|
exports.withQuery = withQuery;
|
|
26
|
-
|
|
26
|
+
const withSubscription = wrap('withSubscription');
|
|
27
27
|
exports.withSubscription = withSubscription;
|
|
28
28
|
var _default = global.shims['@apollo/client/react/hoc'];
|
|
29
|
-
exports
|
|
29
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.useSubscription = exports.useReactiveVar = exports.useQuery = exports.useMutation = exports.useLazyQuery = exports.useApolloClient = exports.resetApolloContext = exports.parser = exports.operationName = exports.getApolloContext = exports.default = exports.DocumentType = exports.ApolloProvider = exports.ApolloConsumer = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../");
|
|
9
9
|
|
|
@@ -13,33 +13,33 @@ var _ = require("../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@apollo/client/react'], '@apollo/client/react');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const useApolloClient = wrap('useApolloClient');
|
|
19
19
|
exports.useApolloClient = useApolloClient;
|
|
20
|
-
|
|
20
|
+
const useLazyQuery = wrap('useLazyQuery');
|
|
21
21
|
exports.useLazyQuery = useLazyQuery;
|
|
22
|
-
|
|
22
|
+
const useMutation = wrap('useMutation');
|
|
23
23
|
exports.useMutation = useMutation;
|
|
24
|
-
|
|
24
|
+
const useQuery = wrap('useQuery');
|
|
25
25
|
exports.useQuery = useQuery;
|
|
26
|
-
|
|
26
|
+
const useReactiveVar = wrap('useReactiveVar');
|
|
27
27
|
exports.useReactiveVar = useReactiveVar;
|
|
28
|
-
|
|
28
|
+
const useSubscription = wrap('useSubscription');
|
|
29
29
|
exports.useSubscription = useSubscription;
|
|
30
|
-
|
|
30
|
+
const ApolloConsumer = wrap('ApolloConsumer');
|
|
31
31
|
exports.ApolloConsumer = ApolloConsumer;
|
|
32
|
-
|
|
32
|
+
const ApolloProvider = wrap('ApolloProvider');
|
|
33
33
|
exports.ApolloProvider = ApolloProvider;
|
|
34
|
-
|
|
34
|
+
const getApolloContext = wrap('getApolloContext');
|
|
35
35
|
exports.getApolloContext = getApolloContext;
|
|
36
|
-
|
|
36
|
+
const resetApolloContext = wrap('resetApolloContext');
|
|
37
37
|
exports.resetApolloContext = resetApolloContext;
|
|
38
|
-
|
|
38
|
+
const DocumentType = wrap('DocumentType');
|
|
39
39
|
exports.DocumentType = DocumentType;
|
|
40
|
-
|
|
40
|
+
const operationName = wrap('operationName');
|
|
41
41
|
exports.operationName = operationName;
|
|
42
|
-
|
|
42
|
+
const parser = wrap('parser');
|
|
43
43
|
exports.parser = parser;
|
|
44
44
|
var _default = global.shims['@apollo/client/react'];
|
|
45
|
-
exports
|
|
45
|
+
exports.default = _default;
|