Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mlly

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mlly - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.2.5](https://github.com/unjs/mlly/compare/v0.2.4...v0.2.5) (2021-10-05)
### Features
* add `interopDefault` util ([#6](https://github.com/unjs/mlly/issues/6)) ([0c49451](https://github.com/unjs/mlly/commit/0c494516e463956e3ab8f4dede9d22bda2518272))
### [0.2.4](https://github.com/unjs/mlly/compare/v0.2.3...v0.2.4) (2021-10-01)

@@ -7,0 +14,0 @@

1

lib/index.d.ts

@@ -72,1 +72,2 @@ // CommonJS

export function toDataURL(code: string) : string
export function interopDefault<T> (sourceModule: T): 'default' extends keyof T ? T['default'] : T

2

package.json
{
"name": "mlly",
"version": "0.2.4",
"version": "0.2.5",
"description": "Missing ECMAScript module utils for Node.js",

@@ -5,0 +5,0 @@ "repository": "unjs/mlly",

@@ -319,4 +319,16 @@ # 🤝 mlly

### `interopDefault`
Return the default export of a module at the top-level, alongside any other named exports.
```js
// Assuming the shape { default: { foo: 'bar' }, baz: 'qux' }
import myModule from 'my-module'
// Returns { foo: 'bar', baz: 'qux' }
console.log(interopDefault(myModule))
```
## License
MIT

Sorry, the diff of this file is not supported yet

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