Skip to content

Commit

Permalink
reference @isaacs license in cache's file
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed Sep 30, 2024
1 parent be81409 commit e7f301d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/server/ssh/sesh.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/** The ISC License
Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

import type { NodeSSH } from "node-ssh";
// a storage-unbounded ttl cache that is not an lru-cache

export const cache = {
data: new Map<PropertyKey, NodeSSH>(),
timers: new Map<PropertyKey, ReturnType<typeof setTimeout>>(),
Expand Down

3 comments on commit e7f301d

@isaacs
Copy link

@isaacs isaacs commented on e7f301d Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Timing on this is funny, given the current twitter drama about pear and continue.dev 😂 I hope it wasn't what motivated it, I don't wanna be too scary to good actors.

@matyson
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha no, actually it was an accident 😅
ive forgot to add the license and included a quick commit message as a reminder sowy

@isaacs
Copy link

@isaacs isaacs commented on e7f301d Sep 30, 2024 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.