File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/node:8.11.4
6+ steps :
7+ - checkout
8+ - run : echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
9+ - restore_cache :
10+ keys :
11+ - modules-{{ checksum "yarn.lock" }}
12+ - run : yarn install --check-files --frozen-lockfile
13+ - save_cache :
14+ key : modules-{{ checksum "yarn.lock" }}
15+ paths :
16+ - node_modules
17+ - run : yarn run build
18+ - run : yarn run test
19+ publish :
20+ docker :
21+ - image : circleci/node:8.11.4
22+ steps :
23+ - checkout
24+ - run : echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
25+ - restore_cache :
26+ keys :
27+ - modules-{{ checksum "yarn.lock" }}
28+ - run : yarn install --check-files --frozen-lockfile
29+ - save_cache :
30+ key : modules-{{ checksum "yarn.lock" }}
31+ paths :
32+ - node_modules
33+ - run : yarn run build
34+ - run : ./node_modules/.bin/journey-deploy execute
35+
36+ workflows :
37+ version : 2
38+ build_and_publish :
39+ jobs :
40+ - build :
41+ filters :
42+ branches :
43+ only : /.*/
44+ ignore : /.*deploy-cli.*/
45+ tags :
46+ only : /.*/
47+ ignore : /.*dev.*/
Original file line number Diff line number Diff line change 1+ # EditorConfig is awesome: http://EditorConfig.org
2+
3+ # top-most EditorConfig file
4+ root = true
5+
6+ # Defaults
7+ [* ]
8+ charset = utf-8
9+ end_of_line = lf
10+ insert_final_newline = true
11+ indent_style = space
12+ indent_size = 2
13+ trim_trailing_whitespace = true
Original file line number Diff line number Diff line change 1+ # https://direnv.net/: brew install direnv
2+
3+ # >>>>>> Load NVM
4+ declare -a nvmdirs=(" $NVM_DIR " )
5+ has brew && nvmdirs+=(" $( brew --prefix nvm) " )
6+
7+ for i in " ${nvmdirs[@]} " ; do
8+ if [ -e " $i /nvm.sh" ]; then
9+ source " $i /nvm.sh"
10+ nvm use || nvm install
11+ break
12+ fi
13+ done
14+
15+
16+ PATH_add ./node_modules/.bin
Original file line number Diff line number Diff line change 1+ .DS_Store
2+ node_modules
3+ .idea
4+ yarn-error.log
5+ lib
Original file line number Diff line number Diff line change 1+ {
2+ "environments" : [
3+ {
4+ "name" : " dev" ,
5+ "scripts" : {
6+ "version" : " npm version" ,
7+ "publish" : " npm publish --access restricted --tag next"
8+ }
9+ },
10+ {
11+ "name" : " prod" ,
12+ "branch" : " master" ,
13+ "production" : true ,
14+ "scripts" : {
15+ "publish" : " npm publish"
16+ }
17+ }
18+ ],
19+ "ci" : {
20+ "organization" : " journeyapps-platform" ,
21+ "project" : " https-proxy-socket"
22+ }
23+ }
Original file line number Diff line number Diff line change 1+ v8.11.4
Original file line number Diff line number Diff line change 1+ {
2+ "semi": true,
3+ "singleQuote": true,
4+ "tabWidth": 2,
5+ "jsxBracketSameLine": true,
6+ "useTabs": false,
7+ "printWidth": 120
8+ }
Original file line number Diff line number Diff line change 1+ # https-proxy-socket
2+
3+ Node library to enable opening Socket connections via an HTTPS proxy.
4+
5+ Based on the implementation in https://github.com/TooTallNate/node-https-proxy-agent ,
6+ but adapted to expose raw Sockets, instead of just http/https requests.
7+
8+ ## Installation
9+
10+ yarn add @journeyapps/https-proxy-socket
11+
12+ ## Usage
13+
14+
15+ const { HttpsProxySocket } = require('@journeyapps/https-proxy-socket');
16+ const proxy = new HttpsProxySocket({
17+ // Connection options
18+ host: 'my-proxy.test',
19+ port: 443
20+ }, {
21+ auth: 'myuser:mypassword' // Optional: proxy basic auth
22+ });
23+
24+ const socket = await proxy.connect({host: 'myhost.test', port: 1234});
25+
26+ ## Usage with mssql
27+
28+
29+ const sql = require('mssql')
30+ const { useProxy } = require('@journeyapps/https-proxy-socket/lib/TediousPatch');
31+
32+ const { HttpsProxySocket } = require('./lib/HttpsProxySocket');
33+ const proxy = new HttpsProxySocket({
34+ // Same as above
35+ });
36+
37+ // Register the proxy globally for tedious/mssql
38+ useProxy(proxy);
39+
40+ async function run() {
41+ // Connect using the proxy
42+ await sql.connect('mssql://username:pwd@myserver.database.windows.net/mydb?encrypt=true')
43+ try {
44+ const result = await sql.query`Select TOP(1) * from mytable`
45+ console.dir(result);
46+ } finally {
47+ await sql.close();
48+ }
49+ }
50+
51+ run().catch(console.error);
Original file line number Diff line number Diff line change 1+ -----BEGIN RSA PRIVATE KEY-----
2+ MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3+ bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4+ b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5+ AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6+ Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7+ 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8+ 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9+ T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10+ uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11+ Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12+ h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13+ bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14+ ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15+ -----END RSA PRIVATE KEY-----
Original file line number Diff line number Diff line change 1+ -----BEGIN CERTIFICATE-----
2+ MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3+ NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4+ NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5+ NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6+ ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7+ OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8+ g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9+ AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10+ 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11+ QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12+ -----END CERTIFICATE-----
You can’t perform that action at this time.
0 commit comments