1 | {
|
2 | "name": "popsicle",
|
3 | "version": "9.2.0",
|
4 | "description": "Simple HTTP requests for node and the browser",
|
5 | "main": "dist/common.js",
|
6 | "files": [
|
7 | "dist/",
|
8 | "typings.json",
|
9 | "LICENSE",
|
10 | "logo.svg"
|
11 | ],
|
12 | "browser": {
|
13 | "buffer": false,
|
14 | "form-data": "./dist/browser/form-data.js",
|
15 | "tough-cookie": "./dist/browser/tough-cookie.js",
|
16 | "./dist/index.js": "./dist/browser.js",
|
17 | "./dist/plugins/index.js": "./dist/plugins/browser.js",
|
18 | "./dist/plugins/is-host/index.js": "./dist/plugins/is-host/browser.js"
|
19 | },
|
20 | "scripts": {
|
21 | "lint": "tslint \"src/**/*.ts\" --project tsconfig.json --type-check",
|
22 | "check-size": "browserify . -s popsicle --external bluebird > popsicle.js && du -h popsicle.js",
|
23 | "build": "rm -rf dist/ && tsc && npm run check-size",
|
24 | "test-spec": "npm run test-server-open && HTTPS_PORT=7358 PORT=7357 node dist/test/index.js; EXIT=$?; npm run test-server-close; exit $EXIT",
|
25 | "test-cov": "HTTPS_PORT=7358 PORT=7357 istanbul cover --print none dist/test/index.js | tap-spec",
|
26 | "test-browser": "HTTPS_PORT=7358 PORT=7357 browserify -d -t envify dist/test/index.js | tape-run --render tap-spec",
|
27 | "test-server-open": "PORT=7357 node scripts/server.js & echo $! > server.pid; HTTPS_PORT=7358 node scripts/https-server.js & echo $! > https-server.pid",
|
28 | "test-server-close": "if [ -f server.pid ]; then kill -9 $(cat server.pid); rm server.pid; fi; if [ -f https-server.pid ]; then kill -9 $(cat https-server.pid); rm https-server.pid; fi",
|
29 | "test": "npm run lint && npm run build && npm run test-server-open && npm run test-cov && npm run test-browser; EXIT=$?; npm run test-server-close; exit $EXIT",
|
30 | "prepublish": "typings install && npm run build"
|
31 | },
|
32 | "repository": {
|
33 | "type": "git",
|
34 | "url": "git://github.com/blakeembrey/popsicle.git"
|
35 | },
|
36 | "keywords": [
|
37 | "request",
|
38 | "ajax",
|
39 | "http",
|
40 | "node",
|
41 | "browser",
|
42 | "promise",
|
43 | "agent"
|
44 | ],
|
45 | "author": {
|
46 | "name": "Blake Embrey",
|
47 | "email": "hello@blakeembrey.com",
|
48 | "url": "http://blakeembrey.me"
|
49 | },
|
50 | "license": "MIT",
|
51 | "bugs": {
|
52 | "url": "https://github.com/blakeembrey/popsicle/issues"
|
53 | },
|
54 | "homepage": "https://github.com/blakeembrey/popsicle",
|
55 | "devDependencies": {
|
56 | "@types/node": "^8.0.0",
|
57 | "blue-tape": "^1.0.0",
|
58 | "bluebird": "^3.0.5",
|
59 | "body-parser": "^1.9.2",
|
60 | "browserify": "^14.3.0",
|
61 | "envify": "^4.0.0",
|
62 | "express": "^4.10.2",
|
63 | "istanbul": "^0.4.0",
|
64 | "methods": "^1.1.2",
|
65 | "tap-spec": "^4.1.1",
|
66 | "tape-run": "3.0.0",
|
67 | "tslint": "^5.2.0",
|
68 | "tslint-config-standard": "^7.0.0",
|
69 | "typescript": "^2.4.1",
|
70 | "typings": "^2.0.0"
|
71 | },
|
72 | "dependencies": {
|
73 | "concat-stream": "^1.4.7",
|
74 | "form-data": "^2.0.0",
|
75 | "make-error-cause": "^1.2.1",
|
76 | "tough-cookie": "^2.0.0"
|
77 | }
|
78 | }
|