add option for npm access level
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
import * as plugins from './npmci.plugins'
|
||||
import * as env from './npmci.env'
|
||||
import * as plugins from './npmci.plugins';
|
||||
import * as env from './npmci.env';
|
||||
|
||||
import { Analytics } from 'smartanalytics'
|
||||
import { Analytics } from 'smartanalytics';
|
||||
|
||||
export let npmciAnalytics = new Analytics({
|
||||
apiEndPoint: 'https://pubapi.lossless.one/analytics',
|
||||
projectId: 'gitzone',
|
||||
appName: 'npmci'
|
||||
})
|
||||
});
|
||||
|
||||
export let run = async () => {
|
||||
npmciAnalytics.recordEvent('npmToolExecution', {
|
||||
host: env.repo.host,
|
||||
user: env.repo.user,
|
||||
repo: env.repo.repo
|
||||
}).catch(err => {
|
||||
plugins.beautylog.warn('Lossless Analytics API not available...')
|
||||
})
|
||||
}
|
||||
npmciAnalytics
|
||||
.recordEvent('npmToolExecution', {
|
||||
host: env.repo.host,
|
||||
user: env.repo.user,
|
||||
repo: env.repo.repo
|
||||
})
|
||||
.catch(err => {
|
||||
plugins.beautylog.warn('Lossless Analytics API not available...');
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user