@jocmp/mercury-parser 3.0.3 → 3.0.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/LICENSE +1 -1
- package/README.md +8 -10
- package/cli.js +4 -4
- package/dist/generate-custom-parser.js +9307 -9230
- package/dist/generate-custom-parser.js.map +1 -1
- package/dist/mercury.js +63 -7
- package/dist/mercury.js.map +1 -1
- package/dist/mercury.web.js +2 -2
- package/dist/mercury.web.js.map +1 -1
- package/package.json +24 -20
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -127,17 +127,15 @@ mercury-parser https://postlight.com/trackchanges/mercury-goes-open-source --ext
|
|
|
127
127
|
mercury-parser https://postlight.com/trackchanges/mercury-goes-open-source --add-extractor ./src/extractors/fixtures/postlight.com/index.js
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Licensed under either of the below, at your preference:
|
|
130
|
+
### Previewing
|
|
133
131
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- MIT license
|
|
137
|
-
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
132
|
+
You can run a local server to test out your changes with the following command. The site will be
|
|
133
|
+
available at <http://localhost:3000>
|
|
138
134
|
|
|
139
|
-
|
|
135
|
+
```bash
|
|
136
|
+
make dev
|
|
137
|
+
```
|
|
140
138
|
|
|
141
|
-
|
|
139
|
+
## License
|
|
142
140
|
|
|
143
|
-
|
|
141
|
+
Licensed under the MIT license ([LICENSE](./LICENSE))
|
package/cli.js
CHANGED
|
@@ -86,18 +86,18 @@ Usage:\n\
|
|
|
86
86
|
});
|
|
87
87
|
console.log(JSON.stringify(result, null, 2));
|
|
88
88
|
} catch (e) {
|
|
89
|
-
if (e.message === 'ETIMEDOUT'
|
|
89
|
+
if (e.message === 'ETIMEDOUT') {
|
|
90
90
|
console.error(
|
|
91
|
-
'\
|
|
91
|
+
'\nMercury Parser encountered a timeout trying to load that resource.'
|
|
92
92
|
);
|
|
93
93
|
} else {
|
|
94
94
|
console.error(
|
|
95
|
-
'\
|
|
95
|
+
'\nMercury Parser encountered a problem trying to parse that resource.\n'
|
|
96
96
|
);
|
|
97
97
|
console.error(e);
|
|
98
98
|
}
|
|
99
99
|
const reportBug =
|
|
100
|
-
'If you believe this was an error, please file an issue at:\n\n https://github.com/
|
|
100
|
+
'If you believe this was an error, please file an issue at:\n\n https://github.com/jocmp/mercury-parser/issues/new';
|
|
101
101
|
console.error(`\n${reportBug}\n`);
|
|
102
102
|
process.exit(1);
|
|
103
103
|
}
|