You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

stc-copy-file

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stc-copy-file - npm Package Compare versions

Comparing version

to
1.0.5

20

lib/index.js

@@ -94,3 +94,3 @@ 'use strict';

if (!this.file.hasAst()) {
_context.next = 22;
_context.next = 21;
break;

@@ -106,21 +106,15 @@ }

_context.t2 = _context.sent;
_context.next = 20;
return _context.t0.addFile.call(_context.t0, _context.t1, _context.t2);
return _context.abrupt('return', _context.t0.addFile.call(_context.t0, _context.t1, _context.t2));
case 20:
_context.next = 29;
break;
case 22:
case 21:
_context.t3 = this;
_context.t4 = targetPath;
_context.next = 26;
_context.next = 25;
return this.getContent('utf8');
case 26:
case 25:
_context.t5 = _context.sent;
_context.next = 29;
return _context.t3.addFile.call(_context.t3, _context.t4, _context.t5);
return _context.abrupt('return', _context.t3.addFile.call(_context.t3, _context.t4, _context.t5));
case 29:
case 27:
case 'end':

@@ -127,0 +121,0 @@ return _context.stop();

{
"name": "stc-copy-file",
"description": "Stc plugin for copying file",
"version": "1.0.4",
"version": "1.0.5",
"author": {

@@ -6,0 +6,0 @@ "name": "lushijie",

Sorry, the diff of this file is not supported yet