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

interpret

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interpret - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

18

index.js
const extensions = {
'.babel.js': [
{
module: '@babel/register',
register: function (module) {
module({
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
// which only captures the final extension (.babel.js -> .js)
extensions: '.js'
});
}
},
{
module: 'babel-register',

@@ -46,2 +56,10 @@ register: function (module) {

{
module: '@babel/register',
register: function (module) {
module({
extensions: '.jsx'
});
}
},
{
module: 'babel-register',

@@ -48,0 +66,0 @@ register: function (module) {

2

package.json
{
"name": "interpret",
"description": "A dictionary of file extensions and associated module loaders.",
"version": "1.0.4",
"version": "1.1.0",
"homepage": "https://github.com/tkellen/node-interpret",

@@ -6,0 +6,0 @@ "author": {

@@ -18,2 +18,12 @@ # interpret

{
module: '@babel/register',
register: function (module) {
module({
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
// which only captures the final extension (.babel.js -> .js)
extensions: '.js'
});
}
},
{
module: 'babel-register',

@@ -61,2 +71,10 @@ register: function (module) {

{
module: '@babel/register',
register: function (module) {
module({
extensions: '.jsx'
});
}
},
{
module: 'babel-register',

@@ -63,0 +81,0 @@ register: function (module) {

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