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 0.6.6 to 1.0.0

18

index.js
const extensions = {
'.babel.js': [
{
module: 'babel-core/register',
module: 'babel-register',
register: function (module) {

@@ -14,2 +14,10 @@ module({

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

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

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

@@ -40,0 +56,0 @@ register: function (module) {

2

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

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

@@ -16,12 +16,30 @@ # interpret

{
'.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'
})
'.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-core/register',
register: function (module) {
module({
extensions: '.js'
});
}
},
{
module: 'babel/register',
register: function (module) {
module({
extensions: '.js'
});
}
}
},
],
'.cirru': 'cirru-script/lib/register',

@@ -42,2 +60,18 @@ '.cjsx': 'node-cjsx/register',

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

@@ -70,4 +104,4 @@ register: function (module) {

},
'.ts': ['typescript-node/register', 'typescript-register', 'typescript-require'],
'.tsx': ['typescript-node/register'],
'.ts': ['ts-node/register', 'typescript-node/register', 'typescript-register', 'typescript-require'],
'.tsx': ['ts-node/register', 'typescript-node/register'],
'.wisp': 'wisp/engine/node',

@@ -74,0 +108,0 @@ '.xml': 'require-xml',

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