@jetshop/core 1.1.13-no-proxy.5 → 1.1.13-no-proxy.3
Sign up to get free protection for your applications and to get access to all the features.
- package/boot/server/createApolloServer.js +6 -7
- package/boot/server/createApolloServer.js.map +1 -1
- package/boot/server/createDevServer.js +1 -0
- package/boot/server/createDevServer.js.map +1 -1
- package/boot/server/index.js +1 -1
- package/boot/server/index.js.map +1 -1
- package/boot/server/listen.d.ts +3 -0
- package/boot/server/listen.js +1 -0
- package/boot/server/listen.js.map +1 -1
- package/package.json +3 -2
- package/polyfills.js +1 -5
- package/polyfills.js.map +1 -1
@@ -79,11 +79,6 @@ export default function createApolloServer({ apolloConfig, extensions = [] }) {
|
|
79
79
|
schemas,
|
80
80
|
resolvers
|
81
81
|
});
|
82
|
-
const engine = apolloConfig.engineApiKey
|
83
|
-
? {
|
84
|
-
apiKey: apolloConfig.engineApiKey
|
85
|
-
}
|
86
|
-
: false;
|
87
82
|
const apolloServer = new ApolloServer({
|
88
83
|
schema,
|
89
84
|
// Disable introspection in production
|
@@ -98,9 +93,13 @@ export default function createApolloServer({ apolloConfig, extensions = [] }) {
|
|
98
93
|
persistedQueries: {
|
99
94
|
cache: new InMemoryLRUCache()
|
100
95
|
},
|
101
|
-
tracing
|
96
|
+
// Enable tracing if Apollo Engine is configured
|
97
|
+
tracing: !!apolloConfig.engineApiKey,
|
102
98
|
cacheControl: true,
|
103
|
-
|
99
|
+
// By setting this to "false", we avoid using Apollo Server 2's
|
100
|
+
// integrated metric reporting and fall-back to using the Apollo
|
101
|
+
// Engine Proxy (running separately) for metric collection.
|
102
|
+
engine: false
|
104
103
|
});
|
105
104
|
return { apolloServer, schema };
|
106
105
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createApolloServer.js","sourceRoot":"","sources":["createApolloServer.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,EAC1B,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,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AAE,CAAC,CAAC;IAE3C,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC;QACxC,GAAG;QACH,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"createDevServer.js","sourceRoot":"","sources":["createDevServer.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,kBAAwC,MAAM,sBAAsB,CAAC;AAC5E,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAQ7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAO,EACpC,YAAY,EACZ,IAAI,EACJ,gBAAgB,EACO,EAAE,EAAE;IAC3B,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;IAEtB,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAEhB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,kBAAkB,CAAC;QAChD,YAAY;QACZ,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IAEH,YAAY,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;IAE3C,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC;QACxC,YAAY;QACZ,GAAG;QACH,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/boot/server/index.js
CHANGED
@@ -44,7 +44,7 @@ const boot = (Component, { apolloConfig, trackingID, tagManagerID, sentryServerD
|
|
44
44
|
});
|
45
45
|
app.use(asyncErrorHandler(renderer));
|
46
46
|
const port = parseInt(process.env.PORT, 10) || 3000;
|
47
|
-
yield listen({ app, port });
|
47
|
+
yield listen({ app, port, apolloConfig });
|
48
48
|
console.log(`🚀 App ready at http://localhost:${port}`);
|
49
49
|
});
|
50
50
|
export default boot;
|
package/boot/server/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAEpE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,MAAM,qCAAqC,CAAC;AAExD,8EAA8E;AAC9E,iGAAiG;AACjG,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,IAAI,CAAC,WAAW,CAAC,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,UAAU,GAAG,QAAQ,CAAC;AAEtE,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC;AACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,QAAQ,GAAG,sBAAsB,CAAC;AA2BlE,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AAEhE,MAAM,IAAI,GAAG,CACX,SAA4B,EAC5B,EACE,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,gBAAgB,EACJ,EACd,EAAE;IACF,IAAI,CAAC,kBAAkB,CAAC,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,EAAE;QAC1D,OAAO,CAAC,KAAK,CAAC,4BAA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AAS,EAAE;QACnD,YAAY;QACZ,YAAY;QACZ,UAAU;QACV,YAAY;QACZ,IAAI;QACJ,gBAAgB;KACjB,CAAC,CAAC;IAEH,GAAG,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAErC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;IAEpD,MAAM,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IAE1C,OAAO,CAAC,GAAG,CAAC,qCAAqC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAA,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/boot/server/listen.d.ts
CHANGED
@@ -1,10 +1,13 @@
|
|
1
|
+
import { ApolloConfig } from '@jetshop/core/boot/apollo';
|
1
2
|
import { Application as ExpressApp } from 'express';
|
2
3
|
export interface ListenOptions {
|
3
4
|
app: ExpressApp;
|
4
5
|
port: number;
|
6
|
+
apolloConfig: ApolloConfig;
|
5
7
|
}
|
6
8
|
/**
|
7
9
|
* - Starts listening to `port`
|
10
|
+
* - Wraps Express server in Apollo Engine if `apolloConfig.engineApiKey` is set
|
8
11
|
*/
|
9
12
|
declare const listen: ({ app, port }: ListenOptions) => Promise<{
|
10
13
|
port: number;
|
package/boot/server/listen.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"listen.js","sourceRoot":"","sources":["listen.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"listen.js","sourceRoot":"","sources":["listen.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAiB,EAA6B,EAAE,CACzE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,GAAW,EAAE,EAAE;QAChD,GAAG;YACD,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;YACb,CAAC,CAAC,OAAO,CAAC;gBACN,IAAI,EAAG,IAAI,CAAC,OAAO,EAAoB,CAAC,IAAI;aAC7C,CAAC,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetshop/core",
|
3
|
-
"version": "1.1.13-no-proxy.
|
3
|
+
"version": "1.1.13-no-proxy.3",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "MIT",
|
6
6
|
"dependencies": {
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"@types/lodash.get": "^4.4.4",
|
11
11
|
"@types/lodash.merge": "^4.6.4",
|
12
12
|
"@types/lodash.pick": "^4.4.4",
|
13
|
-
"@types/node": "^
|
13
|
+
"@types/node": "^8.0.53",
|
14
14
|
"@types/node-fetch": "^2.1.2",
|
15
15
|
"@types/qs": "^6.5.1",
|
16
16
|
"@types/react": "^16.4.18",
|
@@ -19,6 +19,7 @@
|
|
19
19
|
"@types/react-loadable": "^5.4.1",
|
20
20
|
"apollo-cache-inmemory": "^1.3.9",
|
21
21
|
"apollo-client": "^2.4.5",
|
22
|
+
"apollo-engine": "^1.1.2",
|
22
23
|
"apollo-link": "^1.2.3",
|
23
24
|
"apollo-link-context": "^1.0.9",
|
24
25
|
"apollo-link-error": "^1.1.1",
|
package/polyfills.js
CHANGED
@@ -11,11 +11,7 @@ const polyfills = (locale) => [
|
|
11
11
|
'String.prototype.endsWith',
|
12
12
|
'String.prototype.startsWith',
|
13
13
|
'Object.keys',
|
14
|
-
'IntersectionObserver',
|
15
14
|
`Intl.~locale.${locale}`
|
16
15
|
];
|
17
|
-
export const createPolyfill = (locale) => {
|
18
|
-
const features = polyfills(locale).join(',');
|
19
|
-
return `<script async defer src="//cdn.polyfill.io/v2/polyfill${process.env.NODE_ENV === 'production' ? '.min' : ''}.js?features=${features}&flags=gated&callback=bootShop"></script>`;
|
20
|
-
};
|
16
|
+
export const createPolyfill = (locale) => `<script src="//cdn.polyfill.io/v2/polyfill${process.env.NODE_ENV === 'production' ? '.min' : ''}.js?features=${polyfills(locale).join(',')}&flags=gated"></script>`;
|
21
17
|
//# sourceMappingURL=polyfills.js.map
|
package/polyfills.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC;IACpC,KAAK;IACL,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,gBAAgB;IAChB,sBAAsB;IACtB,2BAA2B;IAC3B,0BAA0B;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;IAC7B,aAAa;IACb,
|
1
|
+
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC;IACpC,KAAK;IACL,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,gBAAgB;IAChB,sBAAsB;IACtB,2BAA2B;IAC3B,0BAA0B;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;IAC7B,aAAa;IACb,gBAAgB,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,EAAE,CAC/C,6CACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACnD,gBAAgB,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,yBAAyB,CAAC"}
|