Socket
Socket
Sign inDemoInstall

atom-ide-debugger-react-native

Package Overview
Dependencies
213
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc