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

gts

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gts - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

build/src/cli.d.ts

@@ -32,1 +32,8 @@ #!/usr/bin/env node

export declare type VerbFilesFunction = (options: Options, files: string[], fix?: boolean) => Promise<boolean>;
/**
* Get the current version of node.js being run.
* Exported purely for stubbing purposes.
* @private
*/
export declare function getNodeVersion(): string;
export declare function run(verb: string, files: string[]): Promise<boolean>;

@@ -61,2 +61,11 @@ #!/usr/bin/env node

});
/**
* Get the current version of node.js being run.
* Exported purely for stubbing purposes.
* @private
*/
function getNodeVersion() {
return process.version;
}
exports.getNodeVersion = getNodeVersion;
function usage(msg) {

@@ -69,2 +78,10 @@ if (msg) {

async function run(verb, files) {
// throw if running on an old version of nodejs
const nodeMajorVersion = Number(getNodeVersion().slice(1).split('.')[0]);
console.log(`version: ${nodeMajorVersion}`);
if (nodeMajorVersion < 10) {
throw new Error(`gts requires node.js 10.x or up. You are currently running
${process.version}, which is not supported. Please upgrade to
a safe, secure version of nodejs!`);
}
const options = {

@@ -122,2 +139,3 @@ dryRun: cli.flags.dryRun || false,

}
exports.run = run;
updateNotifier({ pkg: packageJson }).notify();

@@ -124,0 +142,0 @@ if (cli.input.length < 1) {

# Changelog
### [2.0.1](https://www.github.com/google/gts/compare/v2.0.0...v2.0.1) (2020-05-07)
### Bug Fixes
* throw an error if running with an unsupported version of nodejs ([#493](https://www.github.com/google/gts/issues/493)) ([94fdf1e](https://www.github.com/google/gts/commit/94fdf1eaed634aa73c3e44c7a3d9f1325f773b07))
* **deps:** update dependency meow to v7 ([#502](https://www.github.com/google/gts/issues/502)) ([cf91cda](https://www.github.com/google/gts/commit/cf91cda1afab25759427511d3c97d0037d61c649))
## [2.0.0](https://www.github.com/google/gts/compare/v1.1.2...v2.0.0) (2020-04-02)

@@ -4,0 +12,0 @@

62

package.json
{
"name": "gts",
"version": "2.0.0",
"version": "2.0.1",
"description": "Google TypeScript Style",

@@ -41,45 +41,45 @@ "repository": "google/gts",

"dependencies": {
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"chalk": "^4.0.0",
"eslint": "^6.7.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.2",
"execa": "^4.0.0",
"inquirer": "^7.0.0",
"meow": "^6.0.0",
"inquirer": "^7.1.0",
"meow": "^7.0.0",
"ncp": "^2.0.0",
"prettier": "^2.0.0",
"rimraf": "^3.0.0",
"update-notifier": "^4.0.0",
"write-file-atomic": "^3.0.0"
"prettier": "^2.0.4",
"rimraf": "^3.0.2",
"update-notifier": "^4.1.0",
"write-file-atomic": "^3.0.3"
},
"devDependencies": {
"@npm/types": "^1.0.1",
"@types/chai": "^4.2.7",
"@types/cross-spawn": "^6.0.0",
"@types/eslint": "^6.1.3",
"@types/fs-extra": "^8.0.0",
"@types/inquirer": "^6.0.0",
"@types/mocha": "^7.0.0",
"@types/ncp": "^2.0.1",
"@types/node": "^10.0.3",
"@types/chai": "^4.2.11",
"@types/cross-spawn": "^6.0.1",
"@types/eslint": "^6.8.0",
"@types/fs-extra": "^8.1.0",
"@types/inquirer": "^6.5.0",
"@types/mocha": "^7.0.2",
"@types/ncp": "^2.0.3",
"@types/node": "^13.11.1",
"@types/prettier": "^2.0.0",
"@types/rimraf": "^3.0.0",
"@types/sinon": "^9.0.0",
"@types/tmp": "^0.1.0",
"@types/update-notifier": "^4.0.0",
"@types/tmp": "^0.2.0",
"@types/update-notifier": "^4.1.0",
"@types/write-file-atomic": "^3.0.0",
"c8": "^7.0.0",
"c8": "^7.1.0",
"chai": "^4.2.0",
"codecov": "^3.0.1",
"cross-spawn": "^7.0.0",
"codecov": "^3.6.5",
"cross-spawn": "^7.0.2",
"fs-extra": "^9.0.0",
"inline-fixtures": "^1.1.0",
"js-green-licenses": "^1.0.0",
"mocha": "^7.0.0",
"sinon": "^9.0.0",
"tmp": "0.1.0",
"typescript": "~3.8.0"
"js-green-licenses": "^2.0.0",
"mocha": "^7.1.1",
"sinon": "^9.0.2",
"tmp": "0.2.1",
"typescript": "^3.8.3"
},

@@ -86,0 +86,0 @@ "peerDependencies": {

@@ -5,3 +5,3 @@ # gts

[![NPM Version][npm-image]][npm-url]
[![CircleCI][circle-image]][circle-url]
[![GitHub Actions][github-image]][github-url]
[![Dependency Status][david-image]][david-url]

@@ -78,2 +78,5 @@ [![Known Vulnerabilities][snyk-image]][snyk-url]

## Supported Node.js Versions
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). Libraries are compatible with all current _active_ and _maintenance_ versions of Node.js.
## License

@@ -87,4 +90,4 @@ [Apache-2.0](LICENSE)

[circle-image]: https://circleci.com/gh/google/gts.svg?style=shield
[circle-url]: https://circleci.com/gh/google/gts
[github-image]: https://github.com/google/gts/workflows/ci/badge.svg
[github-url]: https://github.com/google/gts/actions
[prettier-url]: https://prettier.io/

@@ -91,0 +94,0 @@ [codecov-image]: https://codecov.io/gh/google/gts/branch/master/graph/badge.svg

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