New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mithril-stream-standalone

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mithril-stream-standalone - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

7

package.json
{
"name": "mithril-stream-standalone",
"version": "0.1.3",
"version": "0.1.4",
"type": "module",

@@ -25,3 +25,6 @@ "files": [

"vite": "^2.4.4"
}
},
"author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)",
"homepage": "https://github.com/ArthurClemens/mithril-stream-standalone",
"license": "MIT"
}
# mithril-stream-standalone
Standalone package of [mithril/stream](https://github.com/MithrilJS/mithril.js).
Standalone package of [mithril/stream](https://github.com/MithrilJS/mithril.js) for libraries and applications that use Mithril Stream without the rest of Mithril.
## Rationale
When mithril/stream is used in a React application, Mithril's types conflict with React's. This package eliminates the need for Mithril's types to be installed.
When `mithril/stream` is used in a React application, Mithril's types will conflict with React's. This package eliminates the need for Mithril's types to be installed, avoiding those conflicts.
The code in this package also does not assume `window` to be present, making it suitable for SSR applications (for example created with SvelteKit).
## Usage

@@ -19,3 +21,3 @@

Replace regular import
Change the regular import when using Mithril:

@@ -26,3 +28,3 @@ ```js

with:
to:

@@ -39,2 +41,3 @@ ```js

* [index.d.ts](https://github.com/MithrilJS/mithril.d.ts/blob/master/stream/index.d.ts)
* [Test files](https://github.com/MithrilJS/mithril.js/tree/next/stream/tests)

@@ -41,0 +44,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc