forked from avral/golos-ui
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update golos-lib-js to 0.9.71, support check-integrity
- Loading branch information
1 parent
496e4cf
commit 005726d
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
const fs = require('fs') | ||
const { hashElement } = require('folder-hash') | ||
|
||
async function main() { | ||
try { | ||
const hashOut = './lib/my_hash.js' | ||
|
||
const path = 'node_modules/golos-lib-js' | ||
|
||
const res = await hashElement(path, { | ||
files: { | ||
exclude: [ | ||
path + '/lib/my_hash.js', | ||
path + '/dist/golos.min.js.gz', | ||
path + '/dist/golos-tests.min.js.gz', | ||
path + '/dist/stats.html', | ||
// These not including when NPM publishes | ||
'.npmrc', | ||
'.babelrc', | ||
'.gitignore', | ||
'.npmignore', | ||
'yarn.lock', | ||
], | ||
matchBasename: true, | ||
matchPath: true, | ||
}, | ||
folders: { | ||
exclude: [ | ||
'node_modules', | ||
path + '/src', | ||
path + '/examples' | ||
], | ||
matchPath: true, | ||
ignoreRootName: true | ||
} | ||
}) | ||
|
||
console.log(res.children) | ||
//console.log(res.children.filter(o => o.name === 'lib')[0].children.filter(o => o.name === 'auth')[0].children) | ||
|
||
console.log('LIBRARY HASH IS', res.hash) | ||
} catch (err) { | ||
console.error('LIBRARY HASH FAILED:', err) | ||
} | ||
} | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4826,6 +4826,14 @@ flux-standard-action@^0.6.0: | |
dependencies: | ||
lodash.isplainobject "^3.2.0" | ||
|
||
folder-hash@^4.0.4: | ||
version "4.0.4" | ||
resolved "https://registry.yarnpkg.com/folder-hash/-/folder-hash-4.0.4.tgz#f5ffa14e9fc6f3213598f6a367207adf7d419edc" | ||
integrity sha512-zEyYH+UsHEfJJcCRSf9ai5I4CTZwZ8ObONRuEI5hcEmJY5pS0FUWKruX9mMnYJrgC7MlPFDYnGsK1R+WFYjLlQ== | ||
dependencies: | ||
debug "^4.3.3" | ||
minimatch "~5.1.2" | ||
|
||
for-each@^0.3.3: | ||
version "0.3.3" | ||
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" | ||
|
@@ -5237,10 +5245,10 @@ golos-lib-js@^0.9.64: | |
stream-browserify "^3.0.0" | ||
ws "^8.2.3" | ||
|
||
golos-lib-js@^0.9.68: | ||
version "0.9.68" | ||
resolved "https://registry.yarnpkg.com/golos-lib-js/-/golos-lib-js-0.9.68.tgz#62f3c4a7755eacfbe6dc2f6ebc3111f2ff74e6dd" | ||
integrity sha512-KoQMFHtINYdM0hhe9dKPpWXZLo3MkFXyRxY/zQq0kbBjAwJBU4P1WEMwmPS+MPujjizfvU6nerUOLI4Lj7ChFw== | ||
golos-lib-js@^0.9.71: | ||
version "0.9.71" | ||
resolved "https://registry.yarnpkg.com/golos-lib-js/-/golos-lib-js-0.9.71.tgz#794bc6582a96f0e1a3bc4301e0c5dfac976a15bf" | ||
integrity sha512-FkR7nuyMUXj+IT8ErTFhu6BsaEvPaLZAr72r5H+GUhqbD8q98tFfBURCKw0MGfiO9CEv0zdDG3daPTq2TThvxA== | ||
dependencies: | ||
abort-controller "^3.0.0" | ||
assert "^2.0.0" | ||
|
@@ -7383,7 +7391,7 @@ [email protected], minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: | |
dependencies: | ||
brace-expansion "^1.1.7" | ||
|
||
minimatch@^5.0.1: | ||
minimatch@^5.0.1, minimatch@~5.1.2: | ||
version "5.1.6" | ||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" | ||
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== | ||
|