nuclide-node-transpiler
Advanced tools
Comparing version 0.0.35 to 0.7.0
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
49187
3
26
0
0
100
1402
2
1
1
4
17
17
5
+ Addedglob@7.1.1
+ Addedmkdirp@0.5.1
+ Addeduuid@3.0.1
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.1.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.1(transitive)
+ Addeduuid@3.0.1(transitive)
- Removedbabel-core@5.8.21
- Removedbabel-runtime@5.8.12
- Removedmv@2.1.1
- Removednuclide-inline-imports@0.0.35
- Removedtemp@0.8.3
- Removedacorn@5.7.4(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedalter@0.2.0(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedast-traverse@0.1.1(transitive)
- Removedast-types@0.8.50.9.6(transitive)
- Removedbabel-core@5.8.21(transitive)
- Removedbabel-plugin-constant-folding@1.0.1(transitive)
- Removedbabel-plugin-dead-code-elimination@1.0.2(transitive)
- Removedbabel-plugin-eval@1.0.1(transitive)
- Removedbabel-plugin-inline-environment-variables@1.0.1(transitive)
- Removedbabel-plugin-jscript@1.0.4(transitive)
- Removedbabel-plugin-member-expression-literals@1.0.1(transitive)
- Removedbabel-plugin-property-literals@1.0.1(transitive)
- Removedbabel-plugin-proto-to-assign@1.0.4(transitive)
- Removedbabel-plugin-react-constant-elements@1.0.3(transitive)
- Removedbabel-plugin-react-display-name@1.0.3(transitive)
- Removedbabel-plugin-remove-console@1.0.1(transitive)
- Removedbabel-plugin-remove-debugger@1.0.1(transitive)
- Removedbabel-plugin-runtime@1.0.7(transitive)
- Removedbabel-plugin-undeclared-variables-check@1.0.2(transitive)
- Removedbabel-plugin-undefined-to-void@1.1.6(transitive)
- Removedbabel-runtime@5.8.12(transitive)
- Removedbabylon@5.8.38(transitive)
- Removedbluebird@2.11.0(transitive)
- Removedbreakable@1.0.0(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcliui@2.1.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-js@0.9.181.2.7(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddefs@1.1.1(transitive)
- Removeddetect-indent@3.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesprima@2.7.33.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb15001.1001.0-dev-harmony-fb(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfs-readdir-recursive@0.1.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedglob@5.0.156.0.4(transitive)
- Removedglobals@6.4.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhome-or-tmp@1.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-integer@1.0.7(transitive)
- Removedjs-tokens@1.0.1(transitive)
- Removedjsesc@0.5.0(transitive)
- Removedjson5@0.4.0(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlcid@1.0.0(transitive)
- Removedleft-pad@0.0.3(transitive)
- Removedleven@1.0.2(transitive)
- Removedline-numbers@0.2.0(transitive)
- Removedlodash@3.10.1(transitive)
- Removedlongest@1.0.1(transitive)
- Removedminimatch@2.0.10(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removedmv@2.1.1(transitive)
- Removedncp@2.0.0(transitive)
- Removednuclide-inline-imports@0.0.35(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedoutput-file-sync@1.1.2(transitive)
- Removedpath-exists@1.0.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.5.1(transitive)
- Removedrecast@0.10.240.11.23(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregenerator@0.8.35(transitive)
- Removedregexpu@1.3.0(transitive)
- Removedregjsgen@0.2.0(transitive)
- Removedregjsparser@0.1.5(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedrepeating@1.1.3(transitive)
- Removedresolve@1.22.10(transitive)
- Removedright-align@0.1.3(transitive)
- Removedrimraf@2.2.82.4.5(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsimple-fmt@0.1.0(transitive)
- Removedsimple-is@0.2.0(transitive)
- Removedslash@1.0.0(transitive)
- Removedsource-map@0.1.320.4.40.5.7(transitive)
- Removedsource-map-support@0.2.10(transitive)
- Removedstable@0.1.8(transitive)
- Removedstringmap@0.2.2(transitive)
- Removedstringset@0.2.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtemp@0.8.3(transitive)
- Removedthrough@2.3.8(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedtrim-right@1.0.1(transitive)
- Removedtry-resolve@1.0.1(transitive)
- Removedtryor@0.1.2(transitive)
- Removeduser-home@1.1.1(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@3.27.0(transitive)