wili 0.3.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ import commonjs from '@rollup/plugin-commonjs';
2
+ import json from '@rollup/plugin-json';
3
+ import typescript from '@rollup/plugin-typescript';
4
+
5
+ const plugins = [
6
+ commonjs(),
7
+ json()
8
+ ];
9
+
10
+ const compilerOptions = {
11
+ allowSyntheticDefaultImports: true,
12
+ moduleResolution: "node",
13
+ strictNullChecks: true,
14
+ typeRoots: ['./types', './node_modules/@types']
15
+ };
16
+
17
+ const external = [
18
+ 'child_process',
19
+ 'events',
20
+ 'isomorphic-fetch',
21
+ 'os',
22
+ 'query-string',
23
+ 'stream'
24
+ ];
25
+
26
+ export default [
27
+ {
28
+ external,
29
+ input: 'src/index.ts',
30
+ output: {
31
+ file: 'lib/wili.cjs',
32
+ format: 'cjs'
33
+ },
34
+ plugins: [
35
+ ...plugins,
36
+ typescript(compilerOptions)
37
+ ]
38
+ },
39
+ {
40
+ external,
41
+ input: 'src/index.ts',
42
+ output: {
43
+ file: 'lib/wili.mjs',
44
+ format: 'esm'
45
+ },
46
+ plugins: [
47
+ ...plugins,
48
+ typescript({
49
+ ...compilerOptions,
50
+ module: "ES2020",
51
+ moduleResolution: "node"
52
+ })
53
+ ]
54
+ }
55
+ ];
package/yarn-error.log DELETED
@@ -1,329 +0,0 @@
1
- Arguments:
2
- /usr/local/Cellar/node/9.5.0/bin/node /usr/local/Cellar/yarn/1.3.2/libexec/bin/yarn.js test
3
-
4
- PATH:
5
- /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
6
-
7
- Yarn version:
8
- 1.3.2
9
-
10
- Node version:
11
- 9.5.0
12
-
13
- Platform:
14
- darwin x64
15
-
16
- npm manifest:
17
- {
18
- "name": "wili",
19
- "version": "0.1.3",
20
- "description": "A Node client for the Wiener Linien public transport API",
21
- "main": "lib/index.js",
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/idleberg/node-wili.git"
25
- },
26
- "scripts": {
27
- "build": "tsc --project ./",
28
- "lint": "tslint --project ./",
29
- "test": "node_modules/.bin/ava ./test/test.js --verbose",
30
- },
31
- "keywords": [
32
- "wiener linien",
33
- "wienerlinien",
34
- "vienna",
35
- "opvn",
36
- "public transport"
37
- ],
38
- "author": "Jan T. Sott",
39
- "license": "MIT",
40
- "dependencies": {
41
- "isomorphic-fetch": "^2.2.1"
42
- },
43
- "devDependencies": {
44
- "@types/node": "^9.4.6",
45
- "ava": "^0.25.0",
46
- "tslint": "^5.9.1",
47
- "typescript": "^2.7.2"
48
- }
49
- }
50
-
51
- yarn manifest:
52
- No manifest
53
-
54
- Lockfile:
55
- # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
56
- # yarn lockfile v1
57
-
58
-
59
- "@types/node@^9.4.6":
60
- version "9.4.6"
61
- resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.6.tgz#d8176d864ee48753d053783e4e463aec86b8d82e"
62
-
63
- ansi-regex@^2.0.0:
64
- version "2.1.1"
65
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
66
-
67
- ansi-styles@^2.2.1:
68
- version "2.2.1"
69
- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
70
-
71
- ansi-styles@^3.2.0:
72
- version "3.2.0"
73
- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
74
- dependencies:
75
- color-convert "^1.9.0"
76
-
77
- argparse@^1.0.7:
78
- version "1.0.10"
79
- resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
80
- dependencies:
81
- sprintf-js "~1.0.2"
82
-
83
- babel-code-frame@^6.22.0:
84
- version "6.26.0"
85
- resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
86
- dependencies:
87
- chalk "^1.1.3"
88
- esutils "^2.0.2"
89
- js-tokens "^3.0.2"
90
-
91
- balanced-match@^1.0.0:
92
- version "1.0.0"
93
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
94
-
95
- brace-expansion@^1.1.7:
96
- version "1.1.11"
97
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
98
- dependencies:
99
- balanced-match "^1.0.0"
100
- concat-map "0.0.1"
101
-
102
- builtin-modules@^1.1.1:
103
- version "1.1.1"
104
- resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
105
-
106
- chalk@^1.1.3:
107
- version "1.1.3"
108
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
109
- dependencies:
110
- ansi-styles "^2.2.1"
111
- escape-string-regexp "^1.0.2"
112
- has-ansi "^2.0.0"
113
- strip-ansi "^3.0.0"
114
- supports-color "^2.0.0"
115
-
116
- chalk@^2.3.0:
117
- version "2.3.1"
118
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
119
- dependencies:
120
- ansi-styles "^3.2.0"
121
- escape-string-regexp "^1.0.5"
122
- supports-color "^5.2.0"
123
-
124
- color-convert@^1.9.0:
125
- version "1.9.1"
126
- resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed"
127
- dependencies:
128
- color-name "^1.1.1"
129
-
130
- color-name@^1.1.1:
131
- version "1.1.3"
132
- resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
133
-
134
- commander@^2.12.1:
135
- version "2.14.1"
136
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa"
137
-
138
- concat-map@0.0.1:
139
- version "0.0.1"
140
- resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
141
-
142
- diff@^3.2.0:
143
- version "3.4.0"
144
- resolved "https://registry.yarnpkg.com/diff/-/diff-3.4.0.tgz#b1d85507daf3964828de54b37d0d73ba67dda56c"
145
-
146
- encoding@^0.1.11:
147
- version "0.1.12"
148
- resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb"
149
- dependencies:
150
- iconv-lite "~0.4.13"
151
-
152
- escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
153
- version "1.0.5"
154
- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
155
-
156
- esprima@^4.0.0:
157
- version "4.0.0"
158
- resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804"
159
-
160
- esutils@^2.0.2:
161
- version "2.0.2"
162
- resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
163
-
164
- fs.realpath@^1.0.0:
165
- version "1.0.0"
166
- resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
167
-
168
- glob@^7.1.1:
169
- version "7.1.2"
170
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
171
- dependencies:
172
- fs.realpath "^1.0.0"
173
- inflight "^1.0.4"
174
- inherits "2"
175
- minimatch "^3.0.4"
176
- once "^1.3.0"
177
- path-is-absolute "^1.0.0"
178
-
179
- has-ansi@^2.0.0:
180
- version "2.0.0"
181
- resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
182
- dependencies:
183
- ansi-regex "^2.0.0"
184
-
185
- has-flag@^3.0.0:
186
- version "3.0.0"
187
- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
188
-
189
- iconv-lite@~0.4.13:
190
- version "0.4.19"
191
- resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
192
-
193
- inflight@^1.0.4:
194
- version "1.0.6"
195
- resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
196
- dependencies:
197
- once "^1.3.0"
198
- wrappy "1"
199
-
200
- inherits@2:
201
- version "2.0.3"
202
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
203
-
204
- is-stream@^1.0.1:
205
- version "1.1.0"
206
- resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
207
-
208
- isomorphic-fetch@^2.2.1:
209
- version "2.2.1"
210
- resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
211
- dependencies:
212
- node-fetch "^1.0.1"
213
- whatwg-fetch ">=0.10.0"
214
-
215
- js-tokens@^3.0.2:
216
- version "3.0.2"
217
- resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
218
-
219
- js-yaml@^3.7.0:
220
- version "3.10.0"
221
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
222
- dependencies:
223
- argparse "^1.0.7"
224
- esprima "^4.0.0"
225
-
226
- minimatch@^3.0.4:
227
- version "3.0.4"
228
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
229
- dependencies:
230
- brace-expansion "^1.1.7"
231
-
232
- node-fetch@^1.0.1:
233
- version "1.7.3"
234
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
235
- dependencies:
236
- encoding "^0.1.11"
237
- is-stream "^1.0.1"
238
-
239
- once@^1.3.0:
240
- version "1.4.0"
241
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
242
- dependencies:
243
- wrappy "1"
244
-
245
- path-is-absolute@^1.0.0:
246
- version "1.0.1"
247
- resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
248
-
249
- path-parse@^1.0.5:
250
- version "1.0.5"
251
- resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
252
-
253
- resolve@^1.3.2:
254
- version "1.5.0"
255
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
256
- dependencies:
257
- path-parse "^1.0.5"
258
-
259
- semver@^5.3.0:
260
- version "5.5.0"
261
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
262
-
263
- sprintf-js@~1.0.2:
264
- version "1.0.3"
265
- resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
266
-
267
- strip-ansi@^3.0.0:
268
- version "3.0.1"
269
- resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
270
- dependencies:
271
- ansi-regex "^2.0.0"
272
-
273
- supports-color@^2.0.0:
274
- version "2.0.0"
275
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
276
-
277
- supports-color@^5.2.0:
278
- version "5.2.0"
279
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a"
280
- dependencies:
281
- has-flag "^3.0.0"
282
-
283
- tslib@^1.8.0, tslib@^1.8.1:
284
- version "1.9.0"
285
- resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
286
-
287
- tslint@^5.9.1:
288
- version "5.9.1"
289
- resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae"
290
- dependencies:
291
- babel-code-frame "^6.22.0"
292
- builtin-modules "^1.1.1"
293
- chalk "^2.3.0"
294
- commander "^2.12.1"
295
- diff "^3.2.0"
296
- glob "^7.1.1"
297
- js-yaml "^3.7.0"
298
- minimatch "^3.0.4"
299
- resolve "^1.3.2"
300
- semver "^5.3.0"
301
- tslib "^1.8.0"
302
- tsutils "^2.12.1"
303
-
304
- tsutils@^2.12.1:
305
- version "2.21.2"
306
- resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.21.2.tgz#902aa5987e1440c47673543d96752df8d44ab9c7"
307
- dependencies:
308
- tslib "^1.8.1"
309
-
310
- typescript@^2.7.2:
311
- version "2.7.2"
312
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
313
-
314
- whatwg-fetch@>=0.10.0:
315
- version "2.0.3"
316
- resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"
317
-
318
- wrappy@1:
319
- version "1.0.2"
320
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
321
-
322
- Trace:
323
- SyntaxError: /Users/jan/Dropbox/My Repositories/node-wili/package.json: Unexpected token } in JSON at position 389
324
- at JSON.parse (<anonymous>)
325
- at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:770:59
326
- at Generator.next (<anonymous>)
327
- at step (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:92:30)
328
- at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:103:13
329
- at <anonymous>