@lancom/shared 0.0.367 → 0.0.369

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.
@@ -30,7 +30,7 @@
30
30
  <div class="demo">
31
31
  <google-pay-button
32
32
  v-if="!loading"
33
- environment="TEST"
33
+ :environment="environment"
34
34
  button-type="plain"
35
35
  button-color="black"
36
36
  v-bind:paymentRequest.prop="{
@@ -116,6 +116,9 @@ export default {
116
116
  },
117
117
  computed: {
118
118
  ...mapGetters(['country', 'currency', 'app']),
119
+ environment() {
120
+ return process.env.IS_PROD === 'true' ? 'PRODUCTION' : 'TEST'
121
+ },
119
122
  amountString() {
120
123
  return `${this.amount.toFixed(2)}`;
121
124
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.367",
3
+ "version": "0.0.369",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
@@ -6,7 +6,7 @@ const robots = fs.readFileSync(filePath);
6
6
 
7
7
  module.exports = function (req, res, next) {
8
8
  if (req.url === '/robots.txt') {
9
- if (req.headers.host?.includes('www1') && !req.headers['X-PULL']) {
9
+ if (req.headers.host?.includes('www1') && !req.headers['X-PULL'] && !req.headers['x-pull']) {
10
10
  res.setHeader('Content-Type', 'text/plain');
11
11
  res.end('User-agent: *\nDisallow: /');
12
12
  return;