Closed N0taN3rd closed 7 years ago
@machawk1 hey after this PR the decrease in linting errors is 97.39413680781759% take that travis :stuck_out_tongue_closed_eyes:
Thanks for the updates, @N0taN3rd . You were definitely the guy for the job with your familiarity w/ WARCreate's flow in your adaptation for WAIL-WARCreate. Given the WARCreate Chrome extension is overdue for this overhaul and update to ES6, don't both breaking it up into separate pull requests. I will review the code and functionality and then merge if all looks right functionality-wise. Stand by.
Awesome Project!
Apologies for supper large diffs for this PR and if you want I can break it up. Just let me know. Wanted to contribute back to WARCreate after using it as a basis for WAIL-WARCreate as without WARCreate my node.js version would not exist.
Addressing #84
bumped standard version 3.0.0 -> 10.0.2 added devDependency snazzy (https://github.com/feross/snazzy) to help in reporting linting errors
added to package.json scripts:
added standard configuration to package.json to keep it from wrongly reporting globals such as
chrome
as no-undef addressesran linting-errors-fix addresses
Output from standard before this PR
Output from standard at commit 56b4ade of this PR :godmode:
fixes for #88 #84 #78 #17
refactored warcGenerator.js:
fix for #82 and rework for #90
refactored content.js per #90 and to ensure all of the page's resources are in the warc file which facilitated the fix for #82 by re-adding the writing the of jsData from content.js in warcGenerator.js
I added the
async
attribute toand "promisfied"
fetchImage
,fetchScriptData
,fetchCssData
. Promises used are 100% built in :)Then when calling the function
finally when generating the WARC
fix for #79
by adding a listener to onSendHeaders. Avoid duplicates by keeping track per URL which headers have been added so far
fixed #80
the metadata information for CSS is no longer E =EMBED_MIC it is now E link/@href
fixed #81
the reason why the script tag links were missing from the warcmetadata was because the code checking for its existence was looking for the HREF attribute, not an src attribute. Not rhetorical this error was simply due to a copy pasta error. Was the exact code for outlines as CSS and have I ever made my share of these :feelsgood:
commented out in html/background.html
Per authors own comments
String.fromCodePoint
is a built in string function now