Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename package #352

Merged
merged 2 commits into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Clinic.js Doctor

[![Greenkeeper badge](https://badges.greenkeeper.io/nearform/node-clinic-doctor.svg)](https://greenkeeper.io/)
[![Greenkeeper badge](https://badges.greenkeeper.io/clinic/node-clinic-doctor.svg)](https://greenkeeper.io/)
[![npm version][npm-version]][npm-url] [![Stability Stable][stability-stable]][stability-docs] [![Github Actions build status][actions-status]][actions-url]
[![Downloads][npm-downloads]][npm-url] [![Code style][lint-standard]][lint-standard-url]

Expand All @@ -11,7 +11,7 @@ Programmable interface to [Clinic.js][clinic-url] Doctor. Learn more about Clini
## Installation

```console
npm i -S @nearform/doctor
npm i -S @clinic/doctor
```

## Supported node versions
Expand All @@ -26,7 +26,7 @@ the process nicely.
## Example

```js
const ClinicDoctor = require('@nearform/doctor')
const ClinicDoctor = require('@clinic/doctor')
const doctor = new ClinicDoctor()

doctor.collect(['node', './path-to-script.js'], function (err, filepath) {
Expand All @@ -44,7 +44,7 @@ You can find examples in
## Documentation

```js
const ClinicDoctor = require('@nearform/doctor')
const ClinicDoctor = require('@clinic/doctor')
const doctor = new ClinicDoctor()
```

Expand Down Expand Up @@ -89,9 +89,9 @@ possible error.

[stability-stable]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square
[stability-docs]: https://nodejs.org/api/documentation.html#documentation_stability_index
[npm-version]: https://img.shields.io/npm/v/@nearform/doctor.svg?style=flat-square
[npm-url]: https://www.npmjs.org/@nearform/doctor
[npm-downloads]: http://img.shields.io/npm/dm/@nearform/doctor.svg?style=flat-square
[npm-version]: https://img.shields.io/npm/v/@clinic/doctor.svg?style=flat-square
[npm-url]: https://www.npmjs.org/@clinic/doctor
[npm-downloads]: http://img.shields.io/npm/dm/@clinic/doctor.svg?style=flat-square
[lint-standard]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[lint-standard-url]: https://github.com/feross/standard
[clinic-url]: https://github.com/clinicjs/node-clinic
Expand Down
2 changes: 1 addition & 1 deletion debug/sample-to-csv.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const fs = require('fs')
const getLoggingPaths = require('@nearform/clinic-common').getLoggingPaths('doctor')
const getLoggingPaths = require('@clinic/clinic-common').getLoggingPaths('doctor')
const Analysis = require('../analysis/index.js')
const SystemInfoDecoder = require('../format/system-info-decoder.js')
const TraceEventDecoder = require('../format/trace-event-decoder.js')
Expand Down
2 changes: 1 addition & 1 deletion format/trace-event-decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const stream = require('../lib/destroyable-stream')
const endpoint = require('endpoint')
const parser = require('@nearform/trace-events-parser')
const parser = require('@clinic/trace-events-parser')

class TraceEventDecoder extends stream.Transform {
constructor (systemInfoReader) {
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ const { spawn } = require('child_process')
const Analysis = require('./analysis/index.js')
const Stringify = require('streaming-json-stringify')
const streamTemplate = require('stream-template')
const joinTrace = require('@nearform/node-trace-log-join')
const getLoggingPaths = require('@nearform/clinic-common').getLoggingPaths('doctor')
const joinTrace = require('@clinic/node-trace-log-join')
const getLoggingPaths = require('@clinic/clinic-common').getLoggingPaths('doctor')
const SystemInfoDecoder = require('./format/system-info-decoder.js')
const TraceEventDecoder = require('./format/trace-event-decoder.js')
const ProcessStatDecoder = require('./format/process-stat-decoder.js')
const RenderRecommendations = require('./recommendations/index.js')
const minifyStream = require('minify-stream')
const v8 = require('v8')
const HEAP_MAX = v8.getHeapStatistics().heap_size_limit
const buildJs = require('@nearform/clinic-common/scripts/build-js')
const buildCss = require('@nearform/clinic-common/scripts/build-css')
const mainTemplate = require('@nearform/clinic-common/templates/main')
const buildJs = require('@clinic/clinic-common/scripts/build-js')
const buildCss = require('@clinic/clinic-common/scripts/build-css')
const mainTemplate = require('@clinic/clinic-common/templates/main')

class ClinicDoctor extends events.EventEmitter {
constructor (settings = {}) {
Expand Down
2 changes: 1 addition & 1 deletion injects/sampler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')
const makeDir = require('mkdirp')
const systemInfo = require('../collect/system-info.js')
const ProcessStat = require('../collect/process-stat.js')
const getLoggingPaths = require('@nearform/clinic-common').getLoggingPaths('doctor')
const getLoggingPaths = require('@clinic/clinic-common').getLoggingPaths('doctor')
const ProcessStatEncoder = require('../format/process-stat-encoder.js')

// create encoding files and directory
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@nearform/doctor",
"name": "@clinic/doctor",
"description": "Programmable interface to Clinic.js Doctor",
"repository": "clinicjs/node-clinic-doctor",
"version": "8.1.0",
"version": "9.0.0",
"scripts": {
"visualize-watch": "node debug/visualize-watch.js",
"visualize-all": "node debug/visualize-all.js",
Expand All @@ -13,9 +13,9 @@
"lint": "standard --fix | snazzy"
},
"dependencies": {
"@nearform/clinic-common": "^6.0.0",
"@nearform/node-trace-log-join": "2.0.0-0",
"@nearform/trace-events-parser": "^1.0.4",
"@clinic/clinic-common": "^7.0.0",
"@clinic/node-trace-log-join": "^2.0.0",
"@clinic/trace-events-parser": "^2.0.0",
"@tensorflow/tfjs-core": "^1.2.1",
"async": "^3.0.1",
"clipboard-copy": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/collect-and-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const async = require('async')
const rimraf = require('rimraf')
const events = require('events')
const ClinicDoctor = require('../index.js')
const getLoggingPaths = require('@nearform/clinic-common').getLoggingPaths('doctor')
const getLoggingPaths = require('@clinic/clinic-common').getLoggingPaths('doctor')
const SystemInfoDecoder = require('../format/system-info-decoder.js')
const TraceEventDecoder = require('../format/trace-event-decoder.js')
const ProcessStatDecoder = require('../format/process-stat-decoder.js')
Expand Down
2 changes: 1 addition & 1 deletion test/collect-get-logging-paths.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const test = require('tap').test
const getLoggingPaths = require('@nearform/clinic-common').getLoggingPaths('doctor')
const getLoggingPaths = require('@clinic/clinic-common').getLoggingPaths('doctor')
const path = require('path')

test('Collect - logging path - identifier', function (t) {
Expand Down
22 changes: 11 additions & 11 deletions visualizer/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ class Icon {
class Icons {
constructor () {
const icons = {
'arrow-down': sanitizeIcon(require('@nearform/clinic-common/icons/chevron-down')),
'arrow-up': sanitizeIcon(require('@nearform/clinic-common/icons/chevron-up')),
'arrow-right': sanitizeIcon(require('@nearform/clinic-common/icons/chevron-right')),
'arrow-left': sanitizeIcon(require('@nearform/clinic-common/icons/chevron-left')),
close: sanitizeIcon(require('@nearform/clinic-common/icons/close')),
copy: sanitizeIcon(require('@nearform/clinic-common/icons/copy')),
'grid-1x4': sanitizeIcon(require('@nearform/clinic-common/icons/list-view')),
'grid-2x2': sanitizeIcon(require('@nearform/clinic-common/icons/grid-view')),
lightmode: sanitizeIcon(require('@nearform/clinic-common/icons/light-mode')),
darkmode: sanitizeIcon(require('@nearform/clinic-common/icons/dark-mode')),
warning: sanitizeIcon(require('@nearform/clinic-common/icons/warning-triangle'))
'arrow-down': sanitizeIcon(require('@clinic/clinic-common/icons/chevron-down')),
'arrow-up': sanitizeIcon(require('@clinic/clinic-common/icons/chevron-up')),
'arrow-right': sanitizeIcon(require('@clinic/clinic-common/icons/chevron-right')),
'arrow-left': sanitizeIcon(require('@clinic/clinic-common/icons/chevron-left')),
close: sanitizeIcon(require('@clinic/clinic-common/icons/close')),
copy: sanitizeIcon(require('@clinic/clinic-common/icons/copy')),
'grid-1x4': sanitizeIcon(require('@clinic/clinic-common/icons/list-view')),
'grid-2x2': sanitizeIcon(require('@clinic/clinic-common/icons/grid-view')),
lightmode: sanitizeIcon(require('@clinic/clinic-common/icons/light-mode')),
darkmode: sanitizeIcon(require('@clinic/clinic-common/icons/dark-mode')),
warning: sanitizeIcon(require('@clinic/clinic-common/icons/warning-triangle'))
}

this._icons = new Map()
Expand Down
2 changes: 1 addition & 1 deletion visualizer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const menu = require('./menu.js')
const alert = require('./alert.js')
const graph = require('./graph.js')
const recommendation = require('./recommendation.js')
const loadFonts = require('@nearform/clinic-common/behaviours/font-loader')
const loadFonts = require('@clinic/clinic-common/behaviours/font-loader')

// Called on font load or timeout
const drawUi = () => {
Expand Down
2 changes: 1 addition & 1 deletion visualizer/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@nearform/clinic-common/styles/styles.css';
@import '@clinic/clinic-common/styles/styles.css';

/* Define colors */
html {
Expand Down