Prepublish clean

This commit is contained in:
alexandercerutti
2018-09-12 22:58:47 +02:00
parent b1af0c4af3
commit d9423cddd4
5 changed files with 22 additions and 1027 deletions

View File

@@ -1,27 +0,0 @@
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}

View File

@@ -1,25 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIEIjCCAwqgAwIBAgIIAd68xDltoBAwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCVVMxEzARBgNVBAoTCkFwcGxlIEluYy4xJjAkBgNVBAsTHUFwcGxlIENlcnRp
ZmljYXRpb24gQXV0aG9yaXR5MRYwFAYDVQQDEw1BcHBsZSBSb290IENBMB4XDTEz
MDIwNzIxNDg0N1oXDTIzMDIwNzIxNDg0N1owgZYxCzAJBgNVBAYTAlVTMRMwEQYD
VQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxv
cGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3Bl
ciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDKOFSmy1aqyCQ5SOmM7uxfuH8mkbw0U3rOfGOA
YXdkXqUHI7Y5/lAtFVZYcC1+xG7BSoU+L/DehBqhV8mvexj/avoVEkkVCBmsqtsq
Mu2WY2hSFT2Miuy/axiV4AOsAX2XBWfODoWVN2rtCbauZ81RZJ/GXNG8V25nNYB2
NqSHgW44j9grFU57Jdhav06DwY3Sk9UacbVgnJ0zTlX5ElgMhrgWDcHld0WNUEi6
Ky3klIXh6MSdxmilsKP8Z35wugJZS3dCkTm59c3hTO/AO0iMpuUhXf1qarunFjVg
0uat80YpyejDi+l5wGphZxWy8P3laLxiX27Pmd3vG2P+kmWrAgMBAAGjgaYwgaMw
HQYDVR0OBBYEFIgnFwmpthhgi+zruvZHWcVSVKO3MA8GA1UdEwEB/wQFMAMBAf8w
HwYDVR0jBBgwFoAUK9BpR5R2Cf70a40uQKb3R01/CF4wLgYDVR0fBCcwJTAjoCGg
H4YdaHR0cDovL2NybC5hcHBsZS5jb20vcm9vdC5jcmwwDgYDVR0PAQH/BAQDAgGG
MBAGCiqGSIb3Y2QGAgEEAgUAMA0GCSqGSIb3DQEBBQUAA4IBAQBPz+9Zviz1smwv
j+4ThzLoBTWobot9yWkMudkXvHcs1Gfi/ZptOllc34MBvbKuKmFysa/Nw0Uwj6OD
Dc4dR7Txk4qjdJukw5hyhzs+r0ULklS5MruQGFNrCk4QttkdUGwhgAqJTleMa1s8
Pab93vcNIx0LSiaHP7qRkkykGRIZbVf1eliHe2iK5IaMSuviSRSqpd1VAKmuu0sw
ruGgsbwpgOYJd+W+NKIByn/c4grmO7i77LpilfMFY0GCzQ87HUyVpNur+cmV6U/k
TecmmYHpvPm0KdIBembhLoz2IYrF+Hjhga6/05Cdqa3zr/04GpZnMBxRpVzscYqC
tGwPDBUf
-----END CERTIFICATE-----

View File

@@ -1,25 +0,0 @@
#!/bin/bash
# This script is just a shortcut to extract public and private keys from pkcs#12 key file
# For the ones who never used BASH, remember to not put spaces
# in variable=value or it won't work.
# This is the pass used on .p12 file exported from the keychain
passToExtract="alpaca2018"
# This is the secret to encrypt the key (second command) - use complex secret on production
secret="123456"
# This is the name of the .p12 file exported from the keychain.
# You can put also paths but remember the starting point is the "certificates/" folder
# Example : the file is on the parent folder
# baseFile="../pass-exported.p12"
baseFile="passCertificate-exported.p12"
cd "$(dirname "$0")"
# Certificate Key in .pem format
sudo openssl pkcs12 -in ${baseFile} -clcerts -nokeys -out passcertificate.pem -passin pass:${passToExtract}
# Key in .pem format
sudo openssl pkcs12 -in ${baseFile} -nocerts -out passkey.pem -passin pass:$passToExtract -passout pass:${secret}

962
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,24 +4,26 @@
"description": "The easiest way to generate custom Apple Wallet passes in Node.js", "description": "The easiest way to generate custom Apple Wallet passes in Node.js",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node server.js",
"test": "jasmine tests/index.js" "test": "jasmine tests/index.js"
}, },
"author": "Alexander Patrick Cerutti", "author": "Alexander Patrick Cerutti",
"license": "MIT", "license": "MIT",
"repository": "https://github.com/alexandercerutti/passkit-generator", "repository": "https://github.com/alexandercerutti/passkit-generator",
"bugs": "https://github.com/alexandercerutti/passkit-generator/issues", "bugs": "https://github.com/alexandercerutti/passkit-generator/issues",
"keywords": ["Apple", "Passkit", "Wallet", "Pass"], "keywords": [
"Apple",
"Passkit",
"Wallet",
"Pass"
],
"dependencies": { "dependencies": {
"archiver": "^2.1.1", "archiver": "^2.1.1",
"debug": "^3.1.0", "debug": "^3.1.0",
"express": "^4.16.3",
"joi": "^13.6.0", "joi": "^13.6.0",
"moment": "^2.22.2", "moment": "^2.22.2",
"node-forge": "^0.7.6" "node-forge": "^0.7.6"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^5.1.0",
"jasmine": "^3.2.0" "jasmine": "^3.2.0"
} }
} }