kriskowal/q 14877
A promise library for JavaScript
carteb/carte-blanche 1529
An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
Machine-readable custom errors for Apollostack's GraphQL server
kriskowal/q-io 315
Interfaces for IO using Q promises in JavaScript on Node
ericclemmons/start-server-webpack-plugin 143
Automatically start your server once Webpack's build completes.
Nix Packages collection
An HTTP content negotiation client and server JavaScript library, inspired by Sinatra and JSGI, and using Q promises.
NoSQL in SQLite: Best of both worlds
Nix syntax highlighting for Atom
keeping the project alive with this clone of mauricemach/coffeekup
issue openedNixOS/nixops
Tests fail with `attribute 'network' missing`
Example:
[nix-shell:~/Projects/nixops]$ ./coverage-tests.py -a '!libvirtd,!gce,!ec2,!azure' -v
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
tests.functional.test_ec2_rds_dbinstance.TestEc2RdsDbinstanceTest.test_deploy ... building all machine configurations...
unnamed> closures copied successfully
unnamed> deployment finished successfully
ok
tests.functional.test_ec2_rds_dbinstance.TestEc2RdsDbinstanceTest.test_deploy_with_sg ... building all machine configurations...
unnamed> closures copied successfully
unnamed> deployment finished successfully
ok
tests.functional.test_invalid_identifier.TestInvalidIdentifier.test_invalid_identifier_fails_evaluation ... error: --- EvalError ------------------------------------ nix-instantiate
in file: /home/wmertens/Projects/nixops/nix/eval-machine-info.nix (51:26)
attribute 'network' missing
I'm using nix (Nix) 2.4pre20200622_334e26b, perhaps that's related?
created time in 4 days
startedjesseduffield/horcrux
started time in 5 days
issue commentNixOS/nixpkgs
Make a service abstraction layer
Don't forget to watch Sander present nix-processmgmt https://cfp.nixcon.org/nixcon2020/talk/TW79FU/ :)
comment created time in 8 days
pull request commentStratoKit/strato-db
search: if limit === total, cursor should be null
I'm wondering if we should change the API so you always get the cursor and an additional hasMore boolean. This allows paging through future results.
The API change could coincide with the API change I propose in #9 and the transact branch
comment created time in 10 days
pull request commentStratoKit/strato-db
I think this should return the found result, no?
As for the naming, I'm 90% ok with it, but I wonder if something like eachUntil might be better?
2 more considerations:
eachcould also do this, by passing a stop token; if you return it, processing stops:.each( (item, STOP) => item.bar && STOP)- I want to change the current meaning of
limit, it is currently used to choose the number of items per run, I think it should mean the number of items total. Instead there should be something likepageSize = 50andworkers = 5to load results per 50 and run 5fns in parallel
comment created time in 10 days
issue comments-KaiNet/node-sp-auth
Mystery solved: The timeout was shorter than the communication interval with the SP server. I changed the interval and now the error doesn't happen any more.
So basically, the token gets refreshed automatically, but it does pass this error. Should this error not be hidden and the call retried with a fresh token?
comment created time in 10 days
issue comments-KaiNet/node-sp-auth
This went away by itself it seems, but now it's back and I don't really know how to refresh the token apart from restarting the app. Any pointers on how to debug this would be greatly appreciated.
comment created time in 11 days
PR opened visionmedia/debug
Just a minimal message to let devs know that their DEBUG_x variable couldn't be parsed
pr created time in 11 days
push eventwmertens/debug
commit sha 8f3a1d2238a65c6e98136f80e17a3902287f06d6
node: warn when envvar can't be parsed
push time in 11 days
PR opened visionmedia/debug
I've been using =y without realizing that doesn't work
pr created time in 11 days
push eventwmertens/debug
commit sha 1a3dfdad3d8a232de34440eaf3049777c92ceb1c
README: clarify DEBUG_ envvar parsing
push time in 11 days
fork wmertens/debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
fork in 11 days
issue commentNixOS/nixops
Support building fully remotely
Indeed, this is all technically possible and even desirable, and if this were JavaScript someone would probably have already done it.
I know there is a Haskell parser for Nix, perhaps that project can do the heavy lifting.
There's also nixjs written by @svanderburg but I don't know if it is at a level that it can extract dependency trees from Nix.
Even something that copies all the files that might be needed instead of only the files that are needed would be great.
comment created time in 17 days
issue commentNixOS/nixops
Support building fully remotely
@tobiasBora It's not as easy as it sounds because the configuration needs to be complete. So in fact the configuration.nix would need to set the environment to what it is on the build host, import the nixops deployment configuration and extract its host configuration, and include all its nix dependencies. Possible, but not trivial.
But indeed, adding your own cache is probably pretty easy and then what you propose would be really nice. The added bonus is being able to run nixos-rebuild on the server and it working.
comment created time in 17 days
issue openedibus/ibus
emoji picker behaves erratically
Which distribution and version?: NixOS 21.03pre244932.84d74ae9c9c (Okapi)
Which desktop environment and version?: Gnome 3.36.2
Which session type?: Wayland
Which application and version?: all
IBus version?: IBus 1.5.22
Issue description:
When I enter emoji picker mode (it shows e̲), and I type:
(space), it immediately shows an emoji picker. Selecting the monkey emoji immediately gives🐒ee, it takes 17 seconds before it showsee̲e̲. Pressing enter giveseea, it takes 17 seconds before it showsa. Pressing enter givesamonkey(with space), it takes about 10 seconds before it showse̲🐒. Pressing enter gives🐒monkey ↩️(with space and return), it takes about 6 seconds before it shows🐒
Can you reproduce your problem when you restart ibus-daemon? (yes / no):
(Run ibus exit and ibus-daemon --xim &)
yes/no:
- I can't call the emoji picker any more in Chrome (XWayland)
- The very first time I call the picker in Gnome Terminal (Wayland), it's instant. The second time, things are slow again
Do you see any errors when you run ibus-daemon with the verbose option?:
(Run ibus-daemon --xim --verbose & and look at the output when you encounter your problem.)
no
Can you reproduce your problem with a new user account instead of the current your account? (yes / no): didn't try yet
created time in 18 days
issue closedcorona-warn-app/cwa-app-android
Is this project vulnerable to CVE-2020-12856?
Explanation about the vulnerability here: https://github.com/alwentiu/COVIDSafe-CVE-2020-12856
The Australian app worked around it by forcing the use of v28 of the Bluetooth API, but that will no longer be supported for distribution of updates in November: https://developer.android.com/distribute/best-practices/develop/target-sdk
So, if this app does the same, it won't be possible to distribute updates any more.
closed time in 20 days
wmertensissue commentcorona-warn-app/cwa-app-android
Is this project vulnerable to CVE-2020-12856?
Thank you kindly! Closing.
comment created time in 20 days
issue openedcorona-warn-app/cwa-app-android
Is this project vulnerable to CVE-2020-12856?
Explanation about the vulnerability here: https://github.com/alwentiu/COVIDSafe-CVE-2020-12856
The Australian app worked around it by forcing the use of v28 of the Bluetooth API, but that will no longer be supported for distribution of updates in November: https://developer.android.com/distribute/best-practices/develop/target-sdk
So, if this app does the same, it won't be possible to distribute updates any more.
created time in 20 days
PR opened steelbrain/node-ssh
I think this fixes some hangs for me with some remote shells expecting stdin somehow; I'm just not sure if it's always ok to close the channel. Perhaps there should be an option to keep the channel open, or perhaps it shouldn't be closed if onChannel is passed and that should be the responsibility of the caller?
pr created time in 23 days
push eventwmertens/node-ssh
commit sha bc4d6f4b877feb0e86275518860435c3d29bd825
execCommand: always close stdin
push time in 23 days
push eventStratoKit/strato-db
commit sha 3d727adc6269084559b721387d6b883d34cce082
ESModel: event creators
push time in 25 days
issue commentNixOS/nixpkgs
Make a service abstraction layer
@abathur I hadn't seen that, it looks impressive! Seem like @svanderburg found a nice middle ground between service-specific and service-agnostic.
I wonder how far along this is to be able to boot e.g. nixos-minimal with a different service manager.
comment created time in 25 days
issue commentnodejs/help
I'm experiencing the same thing from time to time. I don't think it's the file descriptors, /proc/$PID/limits shows Max open files 524288 524288 files, and lsof -p shows it using 26 fds.
This is happening via node-fetch, which is just using http(s).request, which just uses dns.lookup, which goes to the Linux nscd, which is almost certainly beyond reproach. The lookups are for a very small set of names that are used in a bunch, every few minutes, so caching should be perfect.
I never see these issues with other programs, only Node.js.
Would it not be an option to have Node.js perform an automatic retry when busy?
Are there other failure conditions that could cause this error?
comment created time in 25 days
pull request commentjest-community/vscode-jest
Provide public API to subscribe to test results.
Great idea IMHO - doesn't this also need some API to enumerate discovered tests and to run them?
comment created time in 25 days
issue commentfacebook/jest
Mark tests that test overall behaviour other tests expand on in more detail
@apples so beforeAll is almost what you want but it needs better error behavior?
Except that you would also want test.essential to apply halfway in a file; I wonder if that would not be better expressed by beforeAll in a describe block (not sure if possible but sounds nice)
comment created time in a month
PR closed NixOS/rfcs
A practical proposal to store build products under their output hash instead of their input hash.
pr closed time in a month
pull request commentNixOS/rfcs
Very well, closing for now. I'm about 50% into a rewrite.
comment created time in a month
issue commentFredrikNoren/ungit
Click & Drag Selection on Patch Changes
@gera2ld That actually involves more clicking, because you can only have one selection: Select something, move to buttons, click "patch", repeat.
comment created time in a month
issue commentwebpack-contrib/webpack-bundle-analyzer
Feature request: calculate size by closure size
Great ideas! In fact, I'd like to see indirect dependencies in a different background color, so you can see without highlighting how much is actually used by direct imports.
And when you hover on a dependency, highlighting all its dependencies (all the way to the leaves) would indeed be great
comment created time in a month
issue commentfacebook/jest
Mark tests that test overall behaviour other tests expand on in more detail
It may read a little bit weird, but that's exactly what beforeAll does - if it fails, none of the tests run.
comment created time in a month
issue commentpmmmwh/react-refresh-webpack-plugin
ReferenceError: Cannot access x before initialization
@foisonocean can you try building with webpack 5?
comment created time in a month
issue commentfacebook/jest
Mark tests that test overall behaviour other tests expand on in more detail
@apples would your use-case not be served already with beforeAll? With perhaps a test on a global that beforeAll sets up?
comment created time in a month
pull request commentFredrikNoren/ungit
Allow toggling patch checkbox by clicking on lines
Would it be possible as a quick win to add a button for toggling all? Just an idea, not worth blocking this over.
comment created time in a month
issue commentFredrikNoren/ungit
Click & Drag Selection on Patch Changes
Any change is an improvement here :)
comment created time in a month
issue commentNixOS/nixpkgs
nixos-rebuild switch kills bluetooth keyboard
@rnhmjoj indeed, this fixes the problem. I'd make a PR, but I can't find any other examples of X-RestartIfChanged being used in modules :-/
comment created time in a month
push eventwmertens/ungit
commit sha c642d039b4edc942f75ad4d2c813fd5df74cd784
fix tests for git 2.28 (#1408) merging now automatically appends the target branch name to the commit message
commit sha ef3c83c6615b2c8f80b44b0b637f35fb3c30a5e5
add copyright to electron executable (#1412)
commit sha dd83e59bc31c9842d7c8cf631c30436031c70aff
Bump Dependencies (#1406) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit sha 157dc9823a6fe793e348205663b71056a6e975cb
update peter-evans/create-pull-request to v3 (#1416)
commit sha 4d175ee382c22ff2cd2f76b6f9cc58fbe1fe8420
Prepare version 1.5.10 (#1415)
commit sha 3939768c06f76c8dd087a2222b1e921b47ae96a9
Bump Dependencies (#1417) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit sha 1d8b9037a6967a59f807166cdaabb2702e82c378
Use page.waitForTimeout API in tests (#1422) * use waitForTimeout https://github.com/puppeteer/puppeteer/pull/6268 * update changelog
commit sha 9a7438999f3ff262778487de0de04488a36e329c
checkout with double click (#1424)
commit sha 22fa49cdc7e01b59f1ab854afbe98f8e6843c436
encode URI paths with slashes It's fine for query parameters to have visible / in them, and it makes it easier to work with the ungit URLs
push time in a month
issue openedjprichardson/node-fs-extra
Overwriting rename is not atomic
- Operating System: Linux 5
- Node.js version: 12
fs-extraversion: latest
As you can see in https://github.com/jprichardson/node-fs-extra/blob/6bffcd81881ae474d3d1765be7dd389b5edfd0e0/lib/move/move.js#L34-L37, when overwriting, the target is first removed.
However, the rename call already removes the target, and this is an atomic operation.
So IMHO, move should only check if the target exists when not overwriting, it should not delete the file itself. (and if the source and target have the same inode, it should not count as already existing, #801)
created time in a month
issue commentfacebook/jest
Mark tests that test overall behaviour other tests expand on in more detail
@enriqu3l I don't like the test.essential because it's extra information you need to provide and maintain.
With test.result, you enforce a dependency when you need it and only when you need it, and as you stop needing it the dependency will be removed as well. You can even wait for multiple tests in a single test.
comment created time in a month
issue commentFredrikNoren/ungit
Click & Drag Selection on Patch Changes
How about a select strip: when you use the mouse you need to click and drag to toggle lines. For touch, you simly need to touch and drag. The first state you toggle is the one that is repeated across the drag. That seems very fast to me.
It needs to be a strip because otherwise you can't scroll any more on touch surfaces.
comment created time in a month
issue openedNixOS/nixpkgs
I have this in my config:
i18n.inputMethod.enabled = "ibus";
i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [
typing-booster
uniemoji
];
When I use the ctrl-shift-e shortcut, it behaves very erratically, doesn't show a dropdown, laggy etc. When I use the uniemoji input method, everything is fine.
cc @ericsagnes
created time in a month
issue commentFredrikNoren/ungit
I would love this too, it is quite annoying to select a branch and then go hunt for the checkout button. Double-click is very natural.
comment created time in a month
issue commentFredrikNoren/ungit
Click & Drag Selection on Patch Changes
Ideally, you'd simply select a bunch of lines and then there's a popup to select/deselect. This works easily with touch, too.
Also, a toggle all lines button would be great.
comment created time in a month
issue openedNixOS/nixops
Running nixops as regular user id 1000 with these specs:
$ df -hl
Filesystem Size Used Avail Use% Mounted on
devtmpfs 50M 0 50M 0% /dev
tmpfs 494M 0 494M 0% /dev/shm
tmpfs 247M 4.2M 243M 2% /run
tmpfs 494M 336K 494M 1% /run/wrappers
/dev/vda2 23G 12G 11G 52% /
/dev/vda2 23G 12G 11G 52% /nix/store
tmpfs 494M 0 494M 0% /sys/fs/cgroup
tmpfs 99M 16K 99M 1% /run/user/1000
tmpfs 99M 0 99M 0% /run/user/1003
tmpfs 99M 0 99M 0% /run/user/0
causes the opaque error tar: no space left on device
The reason is that nixops uses TMPDIR which points to /run and is limited to 100M.
What would be a good way to tell the user about this problem?
created time in a month
issue commentthesofproject/sof
@mengdonglin I had a look at the PR but couldn't see any documentation. Is there somewhere an explanation of how to use this? Thanks :)
comment created time in a month
fork wmertens/callback-to-async-iterator
Turn any callback-based listener into an async iterator.
fork in a month
pull request commentNixOS/nixpkgs
chromium: add useOzone and 'chromiumOzone' variant
@colemickens Is the ozone build somewhat usable? Would you mind pointing me to how I can get a nixpkgs-wayland setup working?
comment created time in a month
Pull request review commentNixOS/nixpkgs
_EOF patchShebangs scripts + # On Darwin, use the Nix-provided libxml2 instead of the patched version
Ah - originally I did break it out but then we agreed not to do that after all https://github.com/NixOS/nixpkgs/pull/2482#issuecomment-42113475
comment created time in a month
issue commentshelljs/shelljs
Ah cool. As for (2), until the replacement is ready, an option would be to unlink() the temp files as soon as all parties have a handle to the inode. Then they are pre-cleaned up. This won't work on Windows of course.
comment created time in a month
Pull request review commentjprichardson/node-fs-extra
move: support changing case in case-insensitive systems
const lstat = (file) => nodeSupportsBigInt ? fs.lstat(file, { bigint: true }) : const statSync = (file) => nodeSupportsBigInt ? fs.statSync(file, { bigint: true }) : fs.statSync(file) const lstatSync = (file) => nodeSupportsBigInt ? fs.lstatSync(file, { bigint: true }) : fs.lstatSync(file) +const isCaseInsensitiveSystem = process.platform === 'darwin' || process.platform === 'win32'
So wouldn't it be easier to just rename the file and pass any errors to the user instead?
comment created time in a month
Pull request review commentjprichardson/node-fs-extra
move: support changing case in case-insensitive systems
function checkPaths (src, dest, funcName, opts, cb) { if (destStat) { if (areIdentical(srcStat, destStat)) {+ const srcBaseName = path.basename(src)+ const destBaseName = path.basename(dest)+ if (funcName === 'move' &&+ isCaseInsensitiveSystem &&
... And in that case, just call rename(). I can't think of a case where it would fail
comment created time in a month
Pull request review commentjprichardson/node-fs-extra
move: support changing case in case-insensitive systems
const lstat = (file) => nodeSupportsBigInt ? fs.lstat(file, { bigint: true }) : const statSync = (file) => nodeSupportsBigInt ? fs.statSync(file, { bigint: true }) : fs.statSync(file) const lstatSync = (file) => nodeSupportsBigInt ? fs.lstatSync(file, { bigint: true }) : fs.lstatSync(file) +const isCaseInsensitiveSystem = process.platform === 'darwin' || process.platform === 'win32'
But wouldn't you have to do that for every directory you access?
comment created time in a month
Pull request review commentjprichardson/node-fs-extra
move: support changing case in case-insensitive systems
function checkPaths (src, dest, funcName, opts, cb) { if (destStat) { if (areIdentical(srcStat, destStat)) {+ const srcBaseName = path.basename(src)+ const destBaseName = path.basename(dest)+ if (funcName === 'move' &&+ isCaseInsensitiveSystem &&
perhaps better to simply not test for this. If the stat() result is the same, it's the same file.
comment created time in a month
Pull request review commentjprichardson/node-fs-extra
move: support changing case in case-insensitive systems
const lstat = (file) => nodeSupportsBigInt ? fs.lstat(file, { bigint: true }) : const statSync = (file) => nodeSupportsBigInt ? fs.statSync(file, { bigint: true }) : fs.statSync(file) const lstatSync = (file) => nodeSupportsBigInt ? fs.lstatSync(file, { bigint: true }) : fs.lstatSync(file) +const isCaseInsensitiveSystem = process.platform === 'darwin' || process.platform === 'win32'
Linux also has case-insensitive filesystems, and it can network mount CIFS which is also case-insensitive. So the only way to test this is to see if you can access a file on the filesystem you want to work with via another casing that doesn't exist yet.
comment created time in a month
issue commentfacebook/jest
Mark tests that test overall behaviour other tests expand on in more detail
I updated #10077 with a new API which I've been using for a while and works great:
const result = test.result('test name')
It doesn't need any big changes, it is robust when you move tests around, it's easy to read, it can do sync and async results etc. I really like it.
comment created time in 2 months
issue commentmscdex/ssh2
Program won't exit after shell
@ProTip FYI based on your piping magic I did https://stackoverflow.com/a/63793635/124416, thanks!
comment created time in 2 months
issue openedsteelbrain/node-ssh
Can't pass options to withShell
which is why I had to use .connection.shell in https://stackoverflow.com/a/63793635/124416
created time in 2 months
Pull request review commentericclemmons/start-server-webpack-plugin
export default class StartServerPlugin { _getScript(compilation) { const {entryName} = this.options;- const map = compilation.entrypoints;- const entry = map.get ? map.get(entryName) : map[entryName];+ const entrypoints = compilation.entrypoints;+ const entry = entrypoints.get+ ? entrypoints.get(entryName)+ : entrypoints[entryName]; if (!entry) {- console.log(compilation);+ this._info('compilation: %O', compilation); throw new Error(- `Requested entry "${entryName}" does not exist, try one of: ${(map.keys- ? map.keys()- : Object.keys(map)+ `Requested entry "${entryName}" does not exist, try one of: ${(entrypoints.keys+ ? entrypoints.keys()+ : Object.keys(entrypoints) ).join(' ')}` ); }- const entryScript = entry.chunks[0].files[0];++ const entryScript = webpack.EntryPlugin+ ? entry.runtimeChunk.files.values().next().value+ : entry.chunks[0].files[0];
Thanks! What webpack version is this?
comment created time in 2 months
issue commentCodeCommission/subscriptions-transport-sse
does this still work with a current version of apollo?
I also don't think subscription-transport-ws should be taken as a role model. It has to implement a separate server whereas the approach above should only provide a resolver for subscriptions (in theory). The SSE channel can be managed by an apollo-link, which could probably create the channel just before a subscription request is sent.
comment created time in 2 months
issue commentapollographql/apollo-feature-requests
SSE is better than websockets:
- no extra port needed
- works with http2
- less resources
- very good browser support
The only disadvantage is that to send something to the browser, you have to go via HTTP instead of on an existing channel so you have a little more lag when sending. But with http2 that's not a problem.
comment created time in 2 months
issue commentCodeCommission/subscriptions-transport-sse
does this still work with a current version of apollo?
I took a look at these, the commit only converts from executionIterable to executionPromise, a small change. The scivisum fork doesn't seem to include anything that would make it compatible with Apollo again, and it adds the requirement that requests are passed via the url.
I'd prefer a system where you set up an SSE stream (or multiple) for getting results, and when you post the subscription query, you start getting the results in the stream. To know which stream to post to, you can use a secret token that you receive when opening the stream and then pass it to the server via a cookie (technical cookie excempt from cookie law), a header or even an unused query variable.
comment created time in 2 months
Pull request review commentNixOS/nixpkgs
_EOF patchShebangs scripts + # On Darwin, use the Nix-provided libxml2 instead of the patched version
not necessarily - it's been a while, but I believe it just keeps its own dependencies in its own tree and it builds them too. Adding an overlay seems like a lot of extra work.
comment created time in 2 months
issue commentNixOS/nixpkgs
nixos-rebuild switch kills bluetooth keyboard
Oh wow sorry I missed this. Actually I recently did an upgrade without encountering issues :thinking: I'll try to reproduce the problem and then I'll apply this change.
comment created time in 2 months
issue commentFredrikNoren/ungit
For the edge between two colors I'd love to see a gradient, which is different from the solid color edges at almost every point
For the overlapping, I think that the only problem would arise when two edges are fully on the same trajectory. Then it would be important to paint the edges together with their nodes, so that overlapping edges would also overlap nodes and make the overlap more obvious.
Either way, wouldn't it already be an improvement on the current situation, even if it may not be perfect yet?
comment created time in 2 months
issue closedstaylor/react-helmet-async
<script> tags can't have inline script text
It seems that the only script tag supported is one with a src.
It would be nice if <Helmet><script>window.foo=5</script></Helmet> would also work.
closed time in 2 months
wmertensissue commentstaylor/react-helmet-async
<script> tags can't have inline script text
You're probably right - https://github.com/staylor/react-helmet-async/blob/23a15037d90ab26a5ad5680d4cf194698bbbf0a1/src/client.js#L18-L19
I'll close this - it doesn't execute the script unless it is loading the page via SSR but that's another issue
comment created time in 2 months
Pull request review commentNixOS/nixpkgs
_EOF patchShebangs scripts + # On Darwin, use the Nix-provided libxml2 instead of the patched version
Agreed, it's my fault, sorry. This was the first thing I did for nixpkgs and I split handbrake into the component packages because I thought it was cleaner. In reality many of those libraries are abandoned and applying the handbrake patches might not necessarily be a good idea.
comment created time in 2 months
startedmmis1000/Vscode-terminal-tab
started time in 2 months
issue commentshelljs/shelljs
I just had this thought so I'm just writing it here: How about implementing the ssh by calling shelljs on the remote? This requires Node on the remote of course, but it would greatly improve the reliability versus calling ssh.
There's node-ssh which provides a native, and then the api could look like this:
const rsh = await shell.ssh(ssh2ConnectOptions)
const files = await rsh.ls('**/*.js')
if ((await rsh.exec('echo hello')).code) throw "argh"
await rsh.cat('*.txt').toRemote('combined.txt')
rsh.dispose()
So the advantage would be that shelljs has access to the real data on the remote, and not just strings, and the result of exec etc can be transformed to ShellString which is nice to work with.
I can't think of a way to make the async functions sync though.
comment created time in 2 months
issue commentshelljs/shelljs
well this is ominous, and it's still open? How can shelljs have a security vulnerability when it's just wrapping system methods and not providing any privilege escalation?
comment created time in 2 months
issue closedwebpack/webpack
production module.hot replacing should use `undefined`
<!-- Please don't delete this template because we'll close your issue --> <!-- Before creating an issue please make sure you are using the latest version of webpack. -->
Bug report
<!-- Please ask questions on StackOverflow or the webpack Gitter. --> <!-- https://stackoverflow.com/questions/ask?tags=webpack --> <!-- https://gitter.im/webpack/webpack --> <!-- Issues which contain questions or support requests will be closed. -->
What is the current behavior?
During development, webpack.hot is an object with members like accept. In a production build, webpack.hot gets replaced by false. If you use webpack.hot?.accept(), this will get replaced by false?.accept(), which breaks.
If the current behavior is a bug, please provide the steps to reproduce.
Use hot module replacement and call module.hot?.accept(), then build a production build.
<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large webpack.config.js files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->
What is the expected behavior?
In production builds, module.hot should be replaced with undefined
<!-- "It should work" is not a helpful explanation --> <!-- Explain exactly how it should behave -->
Other relevant information: webpack version: 4.44.1 Node.js version: 12.18 Operating System: Linux Additional tools: n/a
closed time in 2 months
wmertensissue commentwebpack/webpack
production module.hot replacing should use `undefined`
nevermind, I see that there are tests for this in v5. https://github.com/webpack/webpack/commit/13b417f27df0adeb4f71c1d305c137c8d33c8ab7
comment created time in 2 months
issue openedwebpack/webpack
production module.hot replacing should use `undefined`
<!-- Please don't delete this template because we'll close your issue --> <!-- Before creating an issue please make sure you are using the latest version of webpack. -->
Bug report
<!-- Please ask questions on StackOverflow or the webpack Gitter. --> <!-- https://stackoverflow.com/questions/ask?tags=webpack --> <!-- https://gitter.im/webpack/webpack --> <!-- Issues which contain questions or support requests will be closed. -->
What is the current behavior?
During development, webpack.hot is an object with members like accept. In a production build, webpack.hot gets replaced by false. If you use webpack.hot?.accept(), this will get replaced by false?.accept(), which breaks.
If the current behavior is a bug, please provide the steps to reproduce.
Use hot module replacement and call module.hot?.accept(), then build a production build.
<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large webpack.config.js files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->
What is the expected behavior?
In production builds, module.hot should be replaced with undefined
<!-- "It should work" is not a helpful explanation --> <!-- Explain exactly how it should behave -->
Other relevant information: webpack version: 4.44.1 Node.js version: 12.18 Operating System: Linux Additional tools: n/a
created time in 2 months
issue openedyannickcr/eslint-plugin-react
function-component-definition should ignore function with `this`
This is a polyfill for IE:
Element.prototype.closest = function (s) {
let el = this
if (!document.documentElement.contains(el)) return null
do {
if (el.matches(s)) return el
el = el.parentElement || el.parentNode
} while (el !== null && el.nodeType === 1)
return null
}
it needs access to this and function-component-definition complains about it.
created time in 2 months
Pull request review commentNixOS/nixpkgs
_EOF patchShebangs scripts + # On Darwin, use the Nix-provided libxml2 instead of the patched version
these Darwin/Linux comments are confusing, neither line looks at the platform, so other platforms presumably get the Nix libxml2 as well?
comment created time in 2 months
pull request commentyuanchuan/node-watch
Add an extra flag for skipping sub-directories inside filter function.
This is great :) now how to test it...
comment created time in 2 months
issue commentyannickcr/eslint-plugin-react
function-component-definition should only test PascalCase identifiers
...ok, but they are indistinguishable in code?
function Foo({bar}) { return <span>{bar}</span/> }
function renderFoo({bar}) { return <span>{bar}</span/> }
comment created time in 2 months
issue commentyannickcr/eslint-plugin-react
function-component-definition should only test PascalCase identifiers
They might, and in #2771 the examples actually do
comment created time in 2 months
issue commentyannickcr/eslint-plugin-react
function-component-definition should only test PascalCase identifiers
This would be a render function, which is passed to a component and gets called as part of the render phase
comment created time in 2 months
pull request commentyannickcr/eslint-plugin-react
function-component-definition: ignore properties
@ljharb no, they weren't ignored before this PR, this PR only adds being part of an object
comment created time in 2 months
PR closed yuanchuan/node-watch
Just registering my WiP PR for an ignore option. Would fix #93 by way of fixing #96
Ignore the prettier changes, I'll reduce that to the essentials
pr closed time in 2 months
pull request commentyuanchuan/node-watch
#101 is a better approach
comment created time in 2 months