Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@zayesh/stay
Advanced tools
Stay is a small but effective library for the creation of dynamic xhr-driven web applications.
Stay is a small but effective module for the creation of dynamic xhr-driven web applications. It expects the server to be able to send the page content as a JSON string in which the key names correspond with the IDs of the target DOM containers.
Download the minified library and include it in your project:
<script src="/js/stay.min.js"></script>
You can also install this module with npm.
$ npm install @zayesh/stay
import Stay from "@zayesh/stay";
var stay = new Stay({
// Logs to console by default
stderr: "myDomElement",
// Default is "/json"
infix: "/urlPatternForAsyncRequests",
// Default is 60000ms, 0 means no timeout
timeoutPost: 0,
// Default is 5000ms
timeoutGet: 0,
// Default is true
autoUpdate: false
});
stay.addEventListener("navigate", function() {
alert("Page navigation has started.");
});
stay.addEventListener("receive", function(event) {
/* If autoUpdate is set to false, the programmer can
* decide when to update the page content.
* The response is the parsed JSON string from the server.
*/
stay.update(event.response);
});
stay.addEventListener("load", function() {
alert("The requested page has been loaded.");
});
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Version: 0.0.0 (28.06.2015)
The module realises a robust xhr-driven page navigation.
Copyright (c) 2015 Raoul van Rüschen
Licensed under the Zlib license.
FAQs
Stay is a small but effective library for the creation of dynamic xhr-driven web applications.
We found that @zayesh/stay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.