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

nuclide-node-transpiler

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuclide-node-transpiler - npm Package Compare versions

Comparing version 0.0.35 to 0.7.0

.eslintrc

42

lib/main.js

@@ -1,19 +0,37 @@

/*
* Copyright (c) 2015-present, Facebook, Inc.
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @noflow
*/
'use strict';
/* eslint
comma-dangle: [1, always-multiline],
prefer-object-spread/prefer-object-spread: 0,
rulesdir/no-commonjs: 0,
*/
/**
* This file installs the logic that modifies Node's built in require()
* function to transpile .js files that start with either `'use babel'` or
* `"use babel"`.
* To use the require hook, you should follow this pattern:
*
* const {__DEV__} = require('<relative_path>/nuclide-node-transpiler/lib/env');
* if (__DEV__) {
* require('nuclide-node-transpiler');
* }
*
* It's important that the lib/env path is relative, as that file is the one
* responsible for injecting the modules/ require path!
*/
// Make sure the transpilation is loaded only once.
var jsExtensions = Object.getOwnPropertyDescriptor(require.extensions, '.js');
if (jsExtensions === undefined || jsExtensions.writable) {
var startTranspile = require('./transpile').startTranspile;
startTranspile();
const {__DEV__} = require('./env');
if (__DEV__) {
require('./require-hook');
} else {
throw new Error('The require hook can only be enabled in __DEV__ mode.');
}
{
"dependencies": {
"babel-core": "5.8.21",
"babel-runtime": "5.8.12",
"mv": "2.1.1",
"nuclide-inline-imports": "0.0.35",
"temp": "0.8.3"
},
"description": "Transpiles JavaScript files that 'use babel'",
"license": "SEE LICENSE IN LICENSE",
"main": "./lib/main",
"name": "nuclide-node-transpiler",
"version": "0.7.0",
"description": "Transpiles JavaScript files",
"author": "NEEDS OWNER",
"main": "./lib/main.js",
"license": "BSD-3-Clause",
"homepage": "https://nuclide.io/",
"repository": "https://github.com/facebook/nuclide/tree/master/modules/nuclide-node-transpiler",
"nuclide": {

@@ -17,4 +14,29 @@ "packageType": "Node",

},
"repository": "https://github.com/facebook/nuclide",
"version": "0.0.35"
"scripts": {
"test": "../../node_modules/.bin/jasmine-node spec"
},
"dependencies": {
"glob": "7.1.1",
"mkdirp": "0.5.1",
"uuid": "3.0.1"
},
"devDependencies": {
"babel-core": "6.26.0",
"babel-plugin-idx": "1.4.0",
"babel-plugin-istanbul": "4.1.5",
"babel-plugin-relay": "1.4.1",
"babel-plugin-syntax-flow": "6.18.0",
"babel-plugin-transform-async-to-module-method": "6.24.1",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.0",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-inline-imports-commonjs": "1.2.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-display-name": "6.25.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-strict-mode": "6.24.1",
"dedent": "0.6.0",
"jasmine-node": "1.14.5",
"yargs": "3.32.0"
}
}

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