-
Notifications
You must be signed in to change notification settings - Fork 401
/
package.json
127 lines (126 loc) · 5.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "pubnub",
"version": "8.2.7",
"author": "PubNub <[email protected]>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"scripts": {
"build": "npm run build:node && npm run build:web",
"build:web": "rollup -c ./rollup.config.js --bundleConfigAsCjs",
"build:node": "tsc -p tsconfig.json",
"test": "npm run test:web && npm run test:node",
"test:web": "karma start karma/web.config.cjs",
"test:node": "TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json",
"clean": "rimraf lib dist upload",
"lint": "eslint \"src/**/*\" --config .eslintrc.cjs",
"ci": "npm run clean && npm run build && npm run lint && npm run test",
"ci:web": "npm run clean && npm run build:web && npm run lint && npm run test:web",
"ci:node": "npm run clean && npm run build:node && npm run lint && npm run test:node",
"test:feature:objectsv2:node": "NODE_ENV=test TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json --require tsx --no-config --reporter spec test/dist/objectsv2.test.ts",
"test:feature:fileupload:node": "NODE_ENV=test TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json --require tsx --no-config --reporter spec test/feature/file_upload.node.test.ts",
"test:contract": "npm run test:contract:prepare && npm run test:contract:start",
"test:contract:prepare": "rimraf test/specs && git clone --branch master --depth 1 [email protected]:pubnub/sdk-specifications.git test/specs",
"test:contract:specific": "TS_NODE_PROJECT='./test/contract/tsconfig.json' cucumber-js --require test/contract/definitions/grant.ts dist/contract/contract/features --tags '@featureSet=eventEngine and @contract=subscribeReceivingRecovery and not @na=js'",
"test:contract:start": "cucumber-js -p default --tags '@featureSet=access and @contract=grantAllPermissions and not @na=js and not @skip'",
"test:contract:beta": "cucumber-js -p default --tags 'not @na=js and @beta and not @skip'",
"contract:refresh": "rimraf dist/contract && git clone --branch master [email protected]:pubnub/service-contract-mock.git dist/contract && npm install --prefix dist/contract && npm run refresh-files --prefix dist/contract",
"contract:server": "npm start --prefix dist/contract consumer",
"contract:build": "cd test/contract && tsc",
"contract:test": "cucumber-js --require dist/cucumber dist/contract/contract/features --tags 'not @na=js and not @beta'",
"contract:test-beta": "cucumber-js --require dist/cucumber dist/contract/contract/features --tags 'not @na=js and @beta'",
"contract:test-access": "cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=access and not @na=js and not @beta'",
"contract:test-objectsV2": "cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=objectsV2 and not @na=js and not @beta'",
"contract:test-access-beta": "cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=access and not @na=js and @beta'"
},
"main": "./lib/node/index.js",
"react-native": "./lib/react_native/index.js",
"metro": "./lib/react_native/index.js",
"nativescript": "./lib/nativescript/index.js",
"browser": "./dist/web/pubnub.min.js",
"repository": {
"type": "git",
"url": "git://github.com/pubnub/javascript.git"
},
"keywords": [
"cloud",
"publish",
"subscribe",
"websockets",
"comet",
"bosh",
"xmpp",
"real-time",
"messaging"
],
"dependencies": {
"agentkeepalive": "^3.5.2",
"buffer": "^6.0.3",
"cbor-js": "^0.1.0",
"cbor-sync": "^1.0.4",
"form-data": "^4.0.0",
"lil-uuid": "^0.1.1",
"node-fetch": "^2.7.0",
"proxy-agent": "^6.3.0",
"react-native-url-polyfill": "^2.0.0",
"text-encoding": "^0.7.0"
},
"devDependencies": {
"@cucumber/cucumber": "^10.4.0",
"@cucumber/pretty-formatter": "^1.0.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/cbor-js": "^0.1.1",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/cucumber": "^7.0.0",
"@types/expect": "^24.3.0",
"@types/lil-uuid": "^0.1.3",
"@types/mocha": "^9.1.0",
"@types/nock": "^9.3.1",
"@types/node-fetch": "^2.6.11",
"@types/sinon": "^17.0.3",
"@types/text-encoding": "^0.0.39",
"@types/underscore": "^1.11.15",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.1",
"chai-nock": "^1.2.0",
"cucumber-pretty": "^6.0.1",
"cucumber-tsflow": "^4.4.4",
"es6-shim": "^0.35.8",
"eslint": "^8.57.0",
"eslint-plugin-mocha": "^10.4.1",
"eslint-plugin-prettier": "^5.1.3",
"js-yaml": "^3.13.1",
"karma": "6.4.3",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^2.0.1",
"karma-sinon-chai": "^2.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "0.0.32",
"mocha": "10.4.0",
"nock": "^14.0.0-beta.5",
"prettier": "^3.2.5",
"rimraf": "^3.0.2",
"rollup": "^4.13.2",
"rollup-plugin-gzip": "^3.1.2",
"rollup-plugin-string": "^3.0.0",
"sinon": "^7.5.0",
"sinon-chai": "^3.3.0",
"source-map-support": "^0.5.21",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"tsx": "^4.7.1",
"typescript": "^5.4.5",
"underscore": "^1.9.2"
},
"license": "SEE LICENSE IN LICENSE",
"engine": {
"node": ">=18"
}
}