Socket
Socket
Sign inDemoInstall

@atxm/identify

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

21

lib/index.js

@@ -1,5 +0,6 @@

'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var developer_console_1 = require("@atxm/developer-console");
var console = new developer_console_1.default();
var meta = '@atxm/identify';
var developer_console_1 = require("@atxm/developer-console");
function initIDs() {

@@ -14,12 +15,11 @@ var editors = atom.workspace.getTextEditors();

function addEditorID(editor) {
var _a, _b;
if ((_a = editor) === null || _a === void 0 ? void 0 : _a.id) {
if (editor === null || editor === void 0 ? void 0 : editor.id) {
var view = atom.views.getView(editor);
var buffer = editor.buffer;
if (((_b = editor) === null || _b === void 0 ? void 0 : _b.id) && !view.getAttribute('data-editor-id')) {
developer_console_1.log(meta + ": Add data-attribute for editor #" + editor.id);
if ((editor === null || editor === void 0 ? void 0 : editor.id) && !view.getAttribute('data-editor-id')) {
console.log(meta + ": Add data-attribute for editor #" + editor.id);
view.setAttribute('data-editor-id', editor.id);
}
if (buffer.id && !view.getAttribute('data-buffer-id')) {
developer_console_1.log(meta + ": Add data-attribute for buffer #" + buffer.id);
console.log(meta + ": Add data-attribute for buffer #" + buffer.id);
view.setAttribute('data-buffer-id', buffer.id);

@@ -30,7 +30,6 @@ }

function addPaneID(pane) {
var _a;
if ((_a = pane) === null || _a === void 0 ? void 0 : _a.id) {
if (pane === null || pane === void 0 ? void 0 : pane.id) {
var view = atom.views.getView(pane);
if (!view.getAttribute('data-pane-id')) {
developer_console_1.log(meta + ": Add data-attribute for pane #" + pane.id);
console.log(meta + ": Add data-attribute for pane #" + pane.id);
view.setAttribute('data-pane-id', pane.id);

@@ -41,2 +40,2 @@ }

exports.default = initIDs;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
{
"name": "@atxm/identify",
"version": "0.2.3",
"version": "0.2.4",
"description": "Adds data attributes for editor and pane IDs to the respective HTML element",
"license": "MIT OR GPL-2.0",
"scripts": {
"build": "rimraf tsconfig.json && tsc --pretty --project ./",
"build": "tsc --pretty --project ./",
"dev": "tsc --watch --pretty --project ./",

@@ -22,8 +22,8 @@ "lint": "tslint --project ./",

"dependencies": {
"@atxm/developer-console": "^0.2.0"
"@atxm/developer-console": "^0.5.0"
},
"devDependencies": {
"@types/atom": "^1.36.2",
"@types/node": "^13.7.0",
"husky": "^4.2.1",
"@types/node": "^14.14.41",
"husky": ">=4 <5",
"rimraf": "^3.0.2",

@@ -30,0 +30,0 @@ "tslint": "^6.0.0",

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