Skip to content
Permalink
Browse files
feat(datasource): add node datasource (#11651)
  • Loading branch information
viceice committed Sep 9, 2021
1 parent a9567e6 commit 922a36c099e696b69eec40e2481c6eb259ec93cb
@@ -19,6 +19,7 @@ import { HelmDatasource } from './helm';
import { HexDatasource } from './hex';
import * as jenkinsPlugins from './jenkins-plugins';
import * as maven from './maven';
import { NodeDatasource } from './node';
import * as npm from './npm';
import * as nuget from './nuget';
import { OrbDatasource } from './orb';
@@ -59,6 +60,7 @@ api.set('hex', new HexDatasource());
api.set('jenkins-plugins', jenkinsPlugins);
api.set('maven', maven);
api.set('npm', npm);
api.set(NodeDatasource.id, new NodeDatasource());
api.set('nuget', nuget);
api.set('orb', new OrbDatasource());
api.set('packagist', packagist);

Large diffs are not rendered by default.

@@ -0,0 +1,331 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`datasource/node/index getReleases processes real data 1`] = `
Object {
"homepage": "https://nodejs.org",
"registryUrl": "https://nodejs.org/dist",
"releases": Array [
Object {
"isStable": false,
"releaseTimestamp": "2020-04-21T00:00:00.000Z",
"version": "v14.0.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-04-29T00:00:00.000Z",
"version": "v14.1.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-05-05T00:00:00.000Z",
"version": "v14.2.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-05-19T00:00:00.000Z",
"version": "v14.3.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-06-02T00:00:00.000Z",
"version": "v14.4.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-06-30T00:00:00.000Z",
"version": "v14.5.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-07-20T00:00:00.000Z",
"version": "v14.6.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-07-29T00:00:00.000Z",
"version": "v14.7.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-08-11T00:00:00.000Z",
"version": "v14.8.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-08-27T00:00:00.000Z",
"version": "v14.9.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-09-08T00:00:00.000Z",
"version": "v14.10.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-09-10T00:00:00.000Z",
"version": "v14.10.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-09-15T00:00:00.000Z",
"version": "v14.11.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-09-22T00:00:00.000Z",
"version": "v14.12.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-09-29T00:00:00.000Z",
"version": "v14.13.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-10-07T00:00:00.000Z",
"version": "v14.13.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-10-15T00:00:00.000Z",
"version": "v14.14.0",
},
Object {
"isStable": true,
"releaseTimestamp": "2020-10-27T00:00:00.000Z",
"version": "v14.15.0",
},
Object {
"isStable": true,
"releaseTimestamp": "2020-11-16T00:00:00.000Z",
"version": "v14.15.1",
},
Object {
"isStable": true,
"releaseTimestamp": "2020-12-15T00:00:00.000Z",
"version": "v14.15.2",
},
Object {
"isStable": true,
"releaseTimestamp": "2020-12-17T00:00:00.000Z",
"version": "v14.15.3",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-01-04T00:00:00.000Z",
"version": "v14.15.4",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-02-09T00:00:00.000Z",
"version": "v14.15.5",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-02-23T00:00:00.000Z",
"version": "v14.16.0",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-04-06T00:00:00.000Z",
"version": "v14.16.1",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-05-11T00:00:00.000Z",
"version": "v14.17.0",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-06-15T00:00:00.000Z",
"version": "v14.17.1",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-07-01T00:00:00.000Z",
"version": "v14.17.2",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-07-05T00:00:00.000Z",
"version": "v14.17.3",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-07-29T00:00:00.000Z",
"version": "v14.17.4",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-08-11T00:00:00.000Z",
"version": "v14.17.5",
},
Object {
"isStable": true,
"releaseTimestamp": "2021-08-30T00:00:00.000Z",
"version": "v14.17.6",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-10-20T00:00:00.000Z",
"version": "v15.0.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-10-21T00:00:00.000Z",
"version": "v15.0.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-11-04T00:00:00.000Z",
"version": "v15.1.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-11-10T00:00:00.000Z",
"version": "v15.2.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-11-16T00:00:00.000Z",
"version": "v15.2.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-11-24T00:00:00.000Z",
"version": "v15.3.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-12-09T00:00:00.000Z",
"version": "v15.4.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2020-12-22T00:00:00.000Z",
"version": "v15.5.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-01-04T00:00:00.000Z",
"version": "v15.5.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-01-14T00:00:00.000Z",
"version": "v15.6.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-01-25T00:00:00.000Z",
"version": "v15.7.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-02-02T00:00:00.000Z",
"version": "v15.8.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-02-18T00:00:00.000Z",
"version": "v15.9.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-02-23T00:00:00.000Z",
"version": "v15.10.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-03-03T00:00:00.000Z",
"version": "v15.11.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-03-17T00:00:00.000Z",
"version": "v15.12.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-03-31T00:00:00.000Z",
"version": "v15.13.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-04-06T00:00:00.000Z",
"version": "v15.14.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-04-20T00:00:00.000Z",
"version": "v16.0.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-05-04T00:00:00.000Z",
"version": "v16.1.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-05-19T00:00:00.000Z",
"version": "v16.2.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-06-03T00:00:00.000Z",
"version": "v16.3.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-06-23T00:00:00.000Z",
"version": "v16.4.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-07-01T00:00:00.000Z",
"version": "v16.4.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-07-05T00:00:00.000Z",
"version": "v16.4.2",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-07-14T00:00:00.000Z",
"version": "v16.5.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-07-29T00:00:00.000Z",
"version": "v16.6.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-08-03T00:00:00.000Z",
"version": "v16.6.1",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-08-11T00:00:00.000Z",
"version": "v16.6.2",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-08-18T00:00:00.000Z",
"version": "v16.7.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-08-25T00:00:00.000Z",
"version": "v16.8.0",
},
Object {
"isStable": false,
"releaseTimestamp": "2021-09-07T00:00:00.000Z",
"version": "v16.9.0",
},
],
"sourceUrl": "https://github.com/nodejs/node",
}
`;
@@ -0,0 +1,3 @@
export const defaultRegistryUrl = 'https://nodejs.org/dist';

export const datasource = 'node';

0 comments on commit 922a36c

Please sign in to comment.