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

ace-gremlin-editor

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ace-gremlin-editor - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

es/editor/index.js

@@ -70,3 +70,4 @@ import React, { useEffect } from 'react';

gremlinEditor.resize();
}
},
editorInstance: gremlinEditor
});

@@ -73,0 +74,0 @@ }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

@@ -33,2 +33,5 @@ import React, { useState } from 'react';

};
if (editor === null || editor === void 0 ? void 0 : editor.editorInstance) {
editor === null || editor === void 0 ? void 0 : editor.editorInstance.setValue('g.V().hasLabel()');
}
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", {

@@ -35,0 +38,0 @@ className: "title"

@@ -480,9 +480,5 @@ ace.define('ace/theme/textmate', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) {

var selects = settingDiv.getElementsByTagName('select');
for (var i = 0; i < selects.length; i++) {
selects[i].onchange = onChange;
}
for (var i = 0; i < selects.length; i++) selects[i].onchange = onChange;
var cbs = settingDiv.getElementsByTagName('input');
for (var i = 0; i < cbs.length; i++) {
cbs[i].onclick = onClick;
}
for (var i = 0; i < cbs.length; i++) cbs[i].onclick = onClick;
var button = document.createElement('input');

@@ -489,0 +485,0 @@ button.type = 'button';

@@ -26,11 +26,7 @@ ace.define('ace/ext/whitespace', ['require', 'exports', 'module', 'ace/lib/lang'], function (require, exports, module) {

}
while (i < max && line[line.length - 1] == '\\') {
line = lines[i++];
}
while (i < max && line[line.length - 1] == '\\') line = lines[i++];
}
function getScore(indent) {
var score = 0;
for (var i = indent; i < stats.length; i += indent) {
score += stats[i] || 0;
}
for (var i = indent; i < stats.length; i += indent) score += stats[i] || 0;
return score;

@@ -37,0 +33,0 @@ }

@@ -840,5 +840,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

exec: function exec(editor, args) {
for (var i = 0; i < count; i++) {
command.exec(editor, args);
}
for (var i = 0; i < count; i++) command.exec(editor, args);
},

@@ -845,0 +843,0 @@ multiSelectAction: command.multiSelectAction

@@ -79,3 +79,4 @@ "use strict";

gremlinEditor.resize();
}
},
editorInstance: gremlinEditor
});

@@ -82,0 +83,0 @@ }

@@ -17,4 +17,4 @@ "use strict";

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

@@ -44,2 +44,5 @@ var widthList = ['30%', '50%', '80%', '100%'];

};
if (editor === null || editor === void 0 ? void 0 : editor.editorInstance) {
editor === null || editor === void 0 ? void 0 : editor.editorInstance.setValue('g.V().hasLabel()');
}
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h1", {

@@ -46,0 +49,0 @@ className: "title"

@@ -482,9 +482,5 @@ "use strict";

var selects = settingDiv.getElementsByTagName('select');
for (var i = 0; i < selects.length; i++) {
selects[i].onchange = onChange;
}
for (var i = 0; i < selects.length; i++) selects[i].onchange = onChange;
var cbs = settingDiv.getElementsByTagName('input');
for (var i = 0; i < cbs.length; i++) {
cbs[i].onclick = onClick;
}
for (var i = 0; i < cbs.length; i++) cbs[i].onclick = onClick;
var button = document.createElement('input');

@@ -491,0 +487,0 @@ button.type = 'button';

@@ -28,11 +28,7 @@ "use strict";

}
while (i < max && line[line.length - 1] == '\\') {
line = lines[i++];
}
while (i < max && line[line.length - 1] == '\\') line = lines[i++];
}
function getScore(indent) {
var score = 0;
for (var i = indent; i < stats.length; i += indent) {
score += stats[i] || 0;
}
for (var i = indent; i < stats.length; i += indent) score += stats[i] || 0;
return score;

@@ -39,0 +35,0 @@ }

@@ -842,5 +842,3 @@ "use strict";

exec: function exec(editor, args) {
for (var i = 0; i < count; i++) {
command.exec(editor, args);
}
for (var i = 0; i < count; i++) command.exec(editor, args);
},

@@ -847,0 +845,0 @@ multiSelectAction: command.multiSelectAction

{
"name": "ace-gremlin-editor",
"version": "1.0.1",
"version": "1.0.2",
"description": "基于 Ace 的 Gremlin 编辑器",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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