@linktr.ee/create-link-app 1.1.4 → 1.1.5

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/README.md CHANGED
@@ -94,11 +94,14 @@ Start development server for Link App project
94
94
 
95
95
  ```
96
96
  USAGE
97
- $ create-link-app dev [-p <value>] [--https]
97
+ $ create-link-app dev [-p <value>] [--host <value>] [--https] [--allowedHosts <value>]
98
98
 
99
99
  FLAGS
100
- -p, --port=<value> [default: 3000] Development server listening port
101
- --https Use HTTPS for development server
100
+ -p, --port=<value> [default: 3000] Development server listening port
101
+ --allowedHosts=<value> Allowed hosts for development server. You can set a single host or use "all" to allow all
102
+ hosts
103
+ --host=<value> [default: localhost] Hostname
104
+ --https Use HTTPS for development server
102
105
 
103
106
  DESCRIPTION
104
107
  Start development server for Link App project
@@ -18,7 +18,9 @@ class Dev extends base_1.default {
18
18
  },
19
19
  hot: false,
20
20
  https: flags.https,
21
+ host: flags.host,
21
22
  port: flags.port,
23
+ allowedHosts: flags.allowedHosts,
22
24
  }, (0, webpack_1.default)(config));
23
25
  await devServer.start();
24
26
  }
@@ -32,7 +34,14 @@ Dev.flags = {
32
34
  description: 'Development server listening port',
33
35
  default: 3000,
34
36
  }),
37
+ host: core_1.Flags.string({
38
+ description: 'Hostname',
39
+ default: 'localhost',
40
+ }),
35
41
  https: core_1.Flags.boolean({
36
42
  description: 'Use HTTPS for development server',
37
43
  }),
44
+ allowedHosts: core_1.Flags.string({
45
+ description: 'Allowed hosts for development server. You can set a single host or use "all" to allow all hosts',
46
+ }),
38
47
  };
@@ -48,7 +48,7 @@ const App = () => {
48
48
  return react_1.default.createElement(extension_1.default, { ...extension_dev_data_1.default });
49
49
  }
50
50
  else {
51
- return (react_1.default.createElement("iframe", { src: `${window.location}?embed`, sandbox: ['allow-scripts', 'allow-same-origin', 'allow-popups', 'allow-popups-to-escape-sandbox'].join(' '), scrolling: "no", frameBorder: 0, style: {
51
+ return (react_1.default.createElement("iframe", { src: `${window.location}?embed`, sandbox: ['allow-scripts', 'allow-same-origin', 'allow-popups', 'allow-popups-to-escape-sandbox', 'allow-forms'].join(' '), scrolling: "no", frameBorder: 0, style: {
52
52
  display: 'block',
53
53
  margin: '0 auto',
54
54
  width: '1px',
@@ -125,10 +125,6 @@ async function default_1(env, options) {
125
125
  filename: '[name].[contenthash].css',
126
126
  chunkFilename: '[id].[contenthash].css',
127
127
  }));
128
- config.devServer = {
129
- host: '0.0.0.0',
130
- allowedHosts: 'all',
131
- };
132
128
  }
133
129
  if (env === 'production') {
134
130
  const exposedEntryPoints = {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.4",
2
+ "version": "1.1.5",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
@@ -140,11 +140,24 @@
140
140
  "multiple": false,
141
141
  "default": 3000
142
142
  },
143
+ "host": {
144
+ "name": "host",
145
+ "type": "option",
146
+ "description": "Hostname",
147
+ "multiple": false,
148
+ "default": "localhost"
149
+ },
143
150
  "https": {
144
151
  "name": "https",
145
152
  "type": "boolean",
146
153
  "description": "Use HTTPS for development server",
147
154
  "allowNo": false
155
+ },
156
+ "allowedHosts": {
157
+ "name": "allowedHosts",
158
+ "type": "option",
159
+ "description": "Allowed hosts for development server. You can set a single host or use \"all\" to allow all hosts",
160
+ "multiple": false
148
161
  }
149
162
  },
150
163
  "args": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",
@@ -109,4 +109,4 @@
109
109
  "@oclif/plugin-help"
110
110
  ]
111
111
  }
112
- }
112
+ }