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

baby-tolk

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baby-tolk - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

9

lib/baby-tolk.js

@@ -79,2 +79,9 @@ 'use strict';

var dontCompile = function (pathName) {
// Baby Tolk wont compile files that begin with an underscore `_`.
// This is by convention.
var baseName = Path.basename(pathName);
return baseName[0] === '_';
};
module.exports = {

@@ -93,3 +100,3 @@ extensions: extensionMap,

var adapters = extensionMap[extension];
var adapter = adapters && adapters[0];
var adapter = !dontCompile(pathName) && adapters && adapters[0];

@@ -96,0 +103,0 @@ var continuation;

2

package.json
{
"name": "baby-tolk",
"version": "1.3.0",
"version": "1.4.0",
"description": "A file reader that promises to translate non-web assets to web assets given the available transpilers, sourcemaps and all",

@@ -5,0 +5,0 @@ "main": "lib/baby-tolk.js",

@@ -35,3 +35,3 @@ Baby Tolk

Now you are ready to start reading files from the file system. Baby Tolk automatically loads the transpilers it has access to in the scope it is run in.
Now you are ready to start reading files from the file system. Baby Tolk automatically loads the transpilers it has access to in the scope it is run in. By convention Baby Tolk won't compile any files if the filename begins with an underscore `_` character.

@@ -38,0 +38,0 @@ ```javascript

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