atom-ide-debugger-react-native
Advanced tools
Comparing version 0.7.1 to 0.7.2
330
main.js
@@ -1,179 +0,219 @@ | ||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.resolveConfiguration = undefined;var _asyncToGenerator = _interopRequireDefault(require('async-to-generator'));let resolveConfiguration = exports.resolveConfiguration = (() => {var _ref = (0, _asyncToGenerator.default)( | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.resolveConfiguration = resolveConfiguration; | ||
function _createPackage() { | ||
const data = _interopRequireDefault(require("nuclide-commons-atom/createPackage")); | ||
_createPackage = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _nuclideUri() { | ||
const data = _interopRequireDefault(require("nuclide-commons/nuclideUri")); | ||
_nuclideUri = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _UniversalDisposable() { | ||
const data = _interopRequireDefault(require("nuclide-commons/UniversalDisposable")); | ||
_UniversalDisposable = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _AutoGenLaunchAttachProvider() { | ||
const data = require("nuclide-debugger-common/AutoGenLaunchAttachProvider"); | ||
_AutoGenLaunchAttachProvider = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _nuclideDebuggerCommon() { | ||
const data = require("nuclide-debugger-common"); | ||
_nuclideDebuggerCommon = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* 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. | ||
* | ||
* | ||
* @format | ||
*/ | ||
class Activation { | ||
constructor() { | ||
this._gkService = null; | ||
} | ||
dispose() {} | ||
createDebuggerProvider() { | ||
return { | ||
type: _nuclideDebuggerCommon().VsAdapterTypes.REACT_NATIVE, | ||
getLaunchAttachProvider: connection => { | ||
return new (_AutoGenLaunchAttachProvider().AutoGenLaunchAttachProvider)(_nuclideDebuggerCommon().VsAdapterNames.REACT_NATIVE, connection, getReactNativeConfig(), async () => { | ||
// This debugger is enabled for non-Facebook users, and Facebook | ||
// users inside the Gatekeeper nuclide_debugger_reactnative | ||
return this._gkService == null ? Promise.resolve(true) : this._gkService.passesGK('nuclide_debugger_reactnative'); | ||
}); | ||
} | ||
}; | ||
} | ||
consumeGatekeeperService(service) { | ||
this._gkService = service; | ||
return new (_UniversalDisposable().default)(() => this._gkService = null); | ||
} | ||
createDebuggerConfigurator() { | ||
return [{ | ||
resolveConfiguration, | ||
adapterType: _nuclideDebuggerCommon().VsAdapterTypes.REACT_NATIVE | ||
}]; | ||
} | ||
} | ||
function _deriveProgramFromWorkspace(workspacePath) { | ||
return _nuclideUri().default.getPath(_nuclideUri().default.join(workspacePath, '.vscode', 'launchReactNative.js')); | ||
} | ||
function _deriveOutDirFromWorkspace(workspacePath) { | ||
return _nuclideUri().default.getPath(_nuclideUri().default.join(workspacePath, '.vscode', '.react')); | ||
} | ||
function getReactNativeConfig() { | ||
const workspace = { | ||
name: 'workspace', | ||
type: 'string', | ||
description: 'Absolute path containing package.json', | ||
required: true, | ||
visible: true | ||
}; | ||
const sourceMaps = { | ||
name: 'sourceMaps', | ||
type: 'boolean', | ||
description: 'Whether to use JavaScript source maps to map the generated bundled code back to its original sources', | ||
defaultValue: false, | ||
required: false, | ||
visible: true | ||
}; | ||
const outDir = { | ||
name: 'outDir', | ||
type: 'string', | ||
description: 'The location of the generated JavaScript code (the bundle file). Normally this should be "${workspaceRoot}/.vscode/.react"', | ||
required: false, | ||
visible: true | ||
}; | ||
const sourceMapPathOverrides = { | ||
name: 'sourceMapPathOverrides', | ||
type: 'json', | ||
description: 'A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk. See README for details.', | ||
defaultValue: {}, | ||
required: false, | ||
visible: true | ||
}; | ||
const port = { | ||
name: 'port', | ||
type: 'number', | ||
description: 'Debug port to attach to. Default is 8081.', | ||
defaultValue: 8081, | ||
required: false, | ||
visible: true | ||
}; | ||
const attachProperties = [workspace, sourceMaps, outDir, sourceMapPathOverrides, port]; | ||
const platform = { | ||
name: 'platform', | ||
type: 'enum', | ||
enums: ['ios', 'android'], | ||
description: '', | ||
defaultValue: 'ios', | ||
required: true, | ||
visible: true | ||
}; | ||
const target = { | ||
name: 'target', | ||
type: 'enum', | ||
enums: ['simulator', 'device'], | ||
description: '', | ||
defaultValue: 'simulator', | ||
required: true, | ||
visible: true | ||
}; | ||
const launchProperties = [platform, target].concat(attachProperties); | ||
return { | ||
launch: { | ||
launch: true, | ||
vsAdapterType: _nuclideDebuggerCommon().VsAdapterTypes.REACT_NATIVE, | ||
threads: false, | ||
properties: launchProperties, | ||
scriptPropertyName: null, | ||
cwdPropertyName: 'workspace', | ||
scriptExtension: '.js', | ||
header: null, | ||
getProcessName(values) { | ||
return 'Port: ' + values.port + ' (React Native)'; | ||
} | ||
}, | ||
attach: { | ||
launch: false, | ||
vsAdapterType: _nuclideDebuggerCommon().VsAdapterTypes.REACT_NATIVE, | ||
threads: false, | ||
properties: attachProperties, | ||
cwdPropertyName: 'workspace', | ||
scriptExtension: '.js', | ||
header: null, | ||
getProcessName(values) { | ||
return 'Port: ' + values.port + ' (React Native)'; | ||
} | ||
} | ||
}; | ||
} | ||
async function resolveConfiguration(configuration) { | ||
const { | ||
config | ||
} = configuration; | ||
if (config.outDir == null) { | ||
config.outDir = _deriveOutDirFromWorkspace(config.workspace); | ||
} | ||
config.program = _deriveProgramFromWorkspace(config.workspace); | ||
delete config.workspace; | ||
return configuration; | ||
} | ||
function* ( | ||
configuration) | ||
{ | ||
const { adapterType, config } = configuration; | ||
if (adapterType === (_constants || _load_constants()).VsAdapterTypes.REACT_NATIVE) { | ||
if (config.outDir == null) { | ||
config.outDir = _deriveOutDirFromWorkspace(config.workspace); | ||
} | ||
config.program = _deriveProgramFromWorkspace(config.workspace); | ||
delete config.workspace; | ||
} | ||
return configuration; | ||
});return function resolveConfiguration(_x) {return _ref.apply(this, arguments);};})();var _createPackage;function _load_createPackage() {return _createPackage = _interopRequireDefault(require('nuclide-commons-atom/createPackage'));}var _nuclideUri;function _load_nuclideUri() {return _nuclideUri = _interopRequireDefault(require('nuclide-commons/nuclideUri'));}var _AutoGenLaunchAttachProvider;function _load_AutoGenLaunchAttachProvider() {return _AutoGenLaunchAttachProvider = _interopRequireDefault(require('nuclide-debugger-common/AutoGenLaunchAttachProvider'));}var _constants;function _load_constants() {return _constants = require('nuclide-debugger-common/constants');}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}class Activation {constructor() {}dispose() {}createDebuggerProvider() {return { name: 'React Native', getLaunchAttachProvider: connection => {return new (_AutoGenLaunchAttachProvider || _load_AutoGenLaunchAttachProvider()).default('React Native', connection, getReactNativeConfig());} };}createDebuggerConfigurator() {return { resolveConfiguration };}} /** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* 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. | ||
* | ||
* | ||
* @format | ||
*/function _deriveProgramFromWorkspace(workspacePath) {return (_nuclideUri || _load_nuclideUri()).default.getPath((_nuclideUri || _load_nuclideUri()).default.join(workspacePath, '.vscode', 'launchReactNative.js'));}function _deriveOutDirFromWorkspace(workspacePath) {return (_nuclideUri || _load_nuclideUri()).default.getPath((_nuclideUri || _load_nuclideUri()).default.join(workspacePath, '.vscode', '.react'));}function getReactNativeConfig() {const workspace = { name: 'workspace', type: 'string', description: 'Absolute path containing package.json', required: true, visible: true };const sourceMaps = { name: 'sourceMaps', type: 'boolean', description: 'Whether to use JavaScript source maps to map the generated bundled code back to its original sources', defaultValue: false, required: false, visible: true };const outDir = { name: 'outDir', type: 'string', description: 'The location of the generated JavaScript code (the bundle file). Normally this should be "${workspaceRoot}/.vscode/.react"', required: false, visible: true };const sourceMapPathOverrides = { name: 'sourceMapPathOverrides', type: 'json', description: 'A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk. See README for details.', defaultValue: {}, required: false, visible: true };const port = { name: 'port', type: 'number', description: 'Debug port to attach to. Default is 8081.', defaultValue: 8081, required: false, visible: true };const attachProperties = [workspace, sourceMaps, outDir, sourceMapPathOverrides, port];const platform = { name: 'platform', type: 'enum', enums: ['ios', 'android'], description: '', defaultValue: 'ios', required: true, visible: true };const target = { name: 'target', type: 'enum', enums: ['simulator', 'device'], description: '', defaultValue: 'simulator', required: true, visible: true };const launchProperties = [platform, target].concat(attachProperties);return { launch: { launch: true, vsAdapterType: (_constants || _load_constants()).VsAdapterTypes.REACT_NATIVE, threads: false, properties: launchProperties, scriptPropertyName: null, cwdPropertyName: 'workspace', scriptExtension: '.js', header: null }, attach: { launch: false, vsAdapterType: (_constants || _load_constants()).VsAdapterTypes.REACT_NATIVE, threads: false, properties: attachProperties, cwdPropertyName: 'workspace', scriptExtension: '.js', header: null } };}(0, (_createPackage || _load_createPackage()).default)(module.exports, Activation); | ||
(0, _createPackage().default)(module.exports, Activation); |
{ | ||
"name": "atom-ide-debugger-react-native", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"main": "./main.js", | ||
@@ -19,2 +19,9 @@ "description": "React Native Debugger for Atom IDE.", | ||
}, | ||
"consumedServices": { | ||
"fb-gatekeeper": { | ||
"versions": { | ||
"0.0.0": "consumeGatekeeperService" | ||
} | ||
} | ||
}, | ||
"providedServices": { | ||
@@ -35,15 +42,14 @@ "debugger.provider": { | ||
"dependencies": { | ||
"async-to-generator": "1.1.0", | ||
"atom-ide-debugger-node": "0.7.1", | ||
"atom-ide-debugger-node": "0.7.2", | ||
"chalk": "1.1.3", | ||
"flatten-source-map": "0.0.2", | ||
"lodash": "4.17.4", | ||
"lodash": "4.17.10", | ||
"mkdirp": "0.5.1", | ||
"nuclide-commons": "0.7.1", | ||
"nuclide-commons-atom": "0.7.1", | ||
"nuclide-commons-ui": "0.7.1", | ||
"nuclide-debugger-common": "0.7.1", | ||
"nuclide-commons": "0.7.2", | ||
"nuclide-commons-atom": "0.7.2", | ||
"nuclide-commons-ui": "0.7.2", | ||
"nuclide-debugger-common": "0.7.2", | ||
"plist": "2.0.1", | ||
"q": "1.4.1", | ||
"react": "16.2.0", | ||
"react": "16.4.1", | ||
"request": "2.79.0", | ||
@@ -50,0 +56,0 @@ "rimraf": "2.6.2", |
Sorry, the diff of this file is not supported yet
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
25
5890
3
569289
+ Addedasync@1.5.2(transitive)
+ Addedatom-ide-debugger-node@0.7.2(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcliui@3.2.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcoffee-script@1.12.7(transitive)
+ Addedcson-parser@1.3.5(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddedent@0.7.0(transitive)
+ Addeddiffparser@1.1.0(transitive)
+ Addeddompurify@1.0.3(transitive)
+ Addedfs-plus@3.1.1(transitive)
+ Addedidb-keyval@2.3.0(transitive)
+ Addedimmutable@4.0.0-rc.9(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addedlodash@4.17.10(transitive)
+ Addednuclide-adb@0.7.2(transitive)
+ Addednuclide-commons@0.7.2(transitive)
+ Addednuclide-commons-atom@0.7.2(transitive)
+ Addednuclide-commons-ui@0.7.2(transitive)
+ Addednuclide-debugger-common@0.7.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedreact@16.4.1(transitive)
+ Addedreact-dom@16.4.1(transitive)
+ Addedseason@6.0.2(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedtoml@2.3.3(transitive)
+ Addedwindow-size@0.1.4(transitive)
+ Addedwrap-ansi@2.1.0(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.32.0(transitive)
- Removedasync-to-generator@1.1.0
- Removedasync-to-generator@1.1.0(transitive)
- Removedatom-ide-debugger-node@0.7.1(transitive)
- Removeddedent@0.6.0(transitive)
- Removedlodash@4.17.4(transitive)
- Removednuclide-commons@0.7.1(transitive)
- Removednuclide-commons-atom@0.7.1(transitive)
- Removednuclide-commons-ui@0.7.1(transitive)
- Removednuclide-debugger-common@0.7.1(transitive)
- Removedreact@16.2.0(transitive)
- Removedreact-dom@16.2.0(transitive)
Updatedatom-ide-debugger-node@0.7.2
Updatedlodash@4.17.10
Updatednuclide-commons@0.7.2
Updatednuclide-commons-atom@0.7.2
Updatednuclide-commons-ui@0.7.2
Updatedreact@16.4.1