@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Postlight
3
+ Copyright (c) 2026 Josiah Campbell
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- ## License
131
-
132
- Licensed under either of the below, at your preference:
130
+ ### Previewing
133
131
 
134
- - Apache License, Version 2.0
135
- ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
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
- ## Contributing
135
+ ```bash
136
+ make dev
137
+ ```
140
138
 
141
- For details on how to contribute to Mercury Parser, including how to write a custom content extractor for any site, see [CONTRIBUTING.md](./CONTRIBUTING.md)
139
+ ## License
142
140
 
143
- Unless it is explicitly stated otherwise, any contribution intentionally submitted for inclusion in the work, as defined in the Apache-2.0 license, shall be dual licensed as above without any additional terms or conditions.
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' && false) {
89
+ if (e.message === 'ETIMEDOUT') {
90
90
  console.error(
91
- '\nPostlight Parser encountered a timeout trying to load that resource.'
91
+ '\nMercury Parser encountered a timeout trying to load that resource.'
92
92
  );
93
93
  } else {
94
94
  console.error(
95
- '\nPostlight Parser encountered a problem trying to parse that resource.\n'
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/postlight/parser/issues/new';
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
  }