google-p12-pem
Advanced tools
Comparing version 2.0.4 to 3.0.0
@@ -15,3 +15,3 @@ #!/usr/bin/env node | ||
console.error('Please specify a *.p12 file to convert.'); | ||
process.exit(1); | ||
process.exitCode = 1; | ||
} | ||
@@ -21,3 +21,3 @@ gp12.getPem(p12Path, (err, pem) => { | ||
console.log(err); | ||
process.exit(1); | ||
process.exitCode = 1; | ||
} | ||
@@ -24,0 +24,0 @@ else { |
@@ -7,2 +7,19 @@ # Changelog | ||
## [3.0.0](https://www.github.com/googleapis/google-p12-pem/compare/v2.0.4...v3.0.0) (2020-03-20) | ||
### ⚠ BREAKING CHANGES | ||
* typescript@3.7.x introduced backwards incompatibilities | ||
* drops Node 8 from engines (#242) | ||
### Features | ||
* drops Node 8 from engines ([#242](https://www.github.com/googleapis/google-p12-pem/issues/242)) ([857cc92](https://www.github.com/googleapis/google-p12-pem/commit/857cc92e711a2ffd5bba18179c8d0395f38cc6ef)) | ||
### Build System | ||
* update typescript/gts ([#243](https://www.github.com/googleapis/google-p12-pem/issues/243)) ([f910f07](https://www.github.com/googleapis/google-p12-pem/commit/f910f07374d586241663755ddf66f3a38e394c28)) | ||
### [2.0.4](https://www.github.com/googleapis/google-p12-pem/compare/v2.0.3...v2.0.4) (2020-01-06) | ||
@@ -9,0 +26,0 @@ |
{ | ||
"name": "google-p12-pem", | ||
"version": "2.0.4", | ||
"version": "3.0.0", | ||
"description": "Convert Google .p12 keys to .pem keys.", | ||
@@ -16,6 +16,5 @@ "main": "./build/src/index.js", | ||
"compile": "tsc -p .", | ||
"fix": "gts fix && eslint --fix '**/*.js'", | ||
"fix": "gts fix", | ||
"prepare": "npm run compile", | ||
"pretest": "npm run compile", | ||
"posttest": "npm run check", | ||
"license-check": "jsgl --local .", | ||
@@ -25,6 +24,7 @@ "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"system-test": "mocha build/system-test", | ||
"lint": "gts check && eslint '**/*.js'", | ||
"lint": "gts check", | ||
"docs": "compodoc src/", | ||
"docs-test": "linkinator docs", | ||
"predocs-test": "npm run docs" | ||
"predocs-test": "npm run docs", | ||
"prelint": "cd samples; npm link ../; npm i" | ||
}, | ||
@@ -42,23 +42,17 @@ "files": [ | ||
"@compodoc/compodoc": "^1.1.7", | ||
"@types/mocha": "^5.2.0", | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^10.0.9", | ||
"@types/node-forge": "^0.9.0", | ||
"c8": "^7.0.0", | ||
"codecov": "^3.0.2", | ||
"eslint": "^6.0.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"gts": "^1.0.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"gts": "^2.0.0-alpha.4", | ||
"js-green-licenses": "^1.0.0", | ||
"linkinator": "^2.0.0", | ||
"mocha": "^7.0.0", | ||
"c8": "^7.0.0", | ||
"prettier": "^1.15.3", | ||
"source-map-support": "^0.5.6", | ||
"typescript": "3.6.4", | ||
"linkinator": "^1.5.0" | ||
"typescript": "^3.8.3" | ||
}, | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">=10" | ||
} | ||
} |
@@ -50,18 +50,18 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
```javascript | ||
const {getPem} = require('google-p12-pem'); | ||
const {getPem} = require('google-p12-pem'); | ||
/** | ||
* Given a p12 file, convert it to the PEM format. | ||
* @param {string} pathToCert The relative path to a p12 file. | ||
*/ | ||
async function quickstart() { | ||
// TODO(developer): provide the path to your cert | ||
// const pathToCert = 'path/to/cert.p12'; | ||
/** | ||
* Given a p12 file, convert it to the PEM format. | ||
* @param {string} pathToCert The relative path to a p12 file. | ||
*/ | ||
async function quickstart() { | ||
// TODO(developer): provide the path to your cert | ||
// const pathToCert = 'path/to/cert.p12'; | ||
const pem = await getPem(pathToCert); | ||
console.log('The converted PEM:'); | ||
console.log(pem); | ||
} | ||
const pem = await getPem(pathToCert); | ||
console.log('The converted PEM:'); | ||
console.log(pem); | ||
} | ||
quickstart(); | ||
quickstart(); | ||
@@ -110,2 +110,8 @@ ``` | ||
Please note that this `README.md`, the `samples/README.md`, | ||
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) | ||
are generated from a central template. To edit one of these files, make an edit | ||
to its template in this | ||
[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). | ||
## License | ||
@@ -112,0 +118,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20103
12
128