New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-command

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-command - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

23

dist/index.cjs.js

@@ -6,21 +6,22 @@ 'use strict';

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,0 +28,0 @@ });

import { spawn } from 'child_process';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -24,0 +25,0 @@ });

{
"name": "rollup-plugin-command",
"version": "1.1.2",
"version": "1.1.3",
"description": "Run commands and call functions when bundles are generated",

@@ -14,4 +14,3 @@ "main": "dist/index.cjs.js",

"lint:test": "prettier --check \"./**\"",
"preversion": "npm run test && npm run lint:test && npm run build",
"postversion": "git push && git push --tags && rm -rf build/temp && npm publish"
"preversion": "npm run test && npm run lint:test && npm run build"
},

@@ -26,7 +25,7 @@ "files": [

"devDependencies": {
"acorn": "^7.1.0",
"chalk": "^2.4.2",
"cross-env": "^6.0.3",
"prettier": "^1.18.2",
"rollup": "^1.26.3",
"acorn": "^7.2.0",
"chalk": "^4.0.0",
"cross-env": "^7.0.2",
"prettier": "^2.0.5",
"rollup": "^2.15.0",
"rollup-plugin-commonjs": "^10.1.0",

@@ -36,4 +35,4 @@ "rollup-plugin-execute": "^1.1.1",

"rollup-plugin-typescript": "^1.0.1",
"tslib": "^1.10.0",
"typescript": "^3.7.2"
"tslib": "^2.0.0",
"typescript": "^3.9.5"
},

@@ -40,0 +39,0 @@ "homepage": "https://github.com/Vehmloewff/rollup-plugin-command#readme",

@@ -40,3 +40,3 @@ # rollup-plugin-command

require('./scripts/cleanup').someFunc, // If this returns a
// promise, and `options.wait` is true (which is default), this
// promise, and `options.wait` is true (it's false by default), this
// plugin will wait for it to be resolved before moving on to the

@@ -62,3 +62,3 @@ // next command or finishing the build.

wait?: boolean; // If the the build should wait for the commands to
// be executed. Default is true.
// be executed. Default is false.
}

@@ -65,0 +65,0 @@ ```

@@ -1,3 +0,3 @@

import { CommandOptions } from './command';
declare const _default: (command: string | Function | TimerHandler[], options?: CommandOptions) => {
import { CommandOptions, CommandCaller } from './command';
declare const _default: (command: CommandCaller | CommandCaller[], options?: CommandOptions) => {
name: string;

@@ -4,0 +4,0 @@ writeBundle: () => Promise<void>;

@@ -1,3 +0,3 @@

import { CommandOptions } from './command';
declare const _default: (command: TimerHandler, options: CommandOptions) => Promise<any>;
import { CommandCaller, CommandOptions } from './command';
declare const _default: (command: CommandCaller, options: CommandOptions) => Promise<any>;
export default _default;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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