Skip to content

Commit

Permalink
chore: rename package (#143)
Browse files Browse the repository at this point in the history
* chore: rename package

* 10.0.0
  • Loading branch information
RafaelGSS authored Nov 12, 2021
1 parent 13fd734 commit dfcdd1d
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 40 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Programmable interface to [Clinic.js][clinic-url] Flame. Learn more about Clinic
## Installation

```
npm i -S @nearform/flame
npm i -S @clinic/flame
```

## Supported node versions
Expand All @@ -20,7 +20,7 @@ npm i -S @nearform/flame
## Example

```js
const ClinicFlame = require('@nearform/flame')
const ClinicFlame = require('@clinic/flame')
const flame = new ClinicFlame()

flame.collect(['node', './path-to-script.js'], function (err, filepath) {
Expand All @@ -35,7 +35,7 @@ flame.collect(['node', './path-to-script.js'], function (err, filepath) {
## Documentation

```js
const ClinicFlame = require('@nearform/flame')
const ClinicFlame = require('@clinic/flame')
const flame = new ClinicFlame()
```

Expand Down Expand Up @@ -73,9 +73,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/flame.svg?style=flat-square
[npm-url]: https://www.npmjs.org/@nearform/flame
[npm-downloads]: http://img.shields.io/npm/dm/@nearform/flame.svg?style=flat-square
[npm-version]: https://img.shields.io/npm/v/@clinic/flame.svg?style=flat-square
[npm-url]: https://www.npmjs.org/@clinic/flame
[npm-downloads]: http://img.shields.io/npm/dm/@clinic/flame.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 collect/get-logging-paths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'

const common = require('@nearform/clinic-common')
const common = require('@clinic/clinic-common')

module.exports = common.getLoggingPaths('flame', ['/samples', '/inlinedfunctions', '/0x-data/'])
2 changes: 1 addition & 1 deletion collect/system-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function systemInfo (zeroXDataPath) {
const metaJson = JSON.parse(fs.readFileSync(path.join(zeroXDataPath, 'meta.json'), 'utf8'))
// This assumes that 0x's meta.json argv array first item is the path to the profiled package
// There may be future exceptions to this, e.g. test cases wrapped in NYC
// See @nearform/bubbleprof's system-info.js for some examples
// See @clinic/bubbleprof's system-info.js for some examples
const entryFile = path.resolve(metaJson.argv[0])

let mainDirectory
Expand Down
2 changes: 1 addition & 1 deletion debug/visualize-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const chokidar = require('chokidar')
const chalk = require('chalk')
const v = require('./visualize-mod.js')

const buildImg = require('@nearform/clinic-common/scripts/build-images')
const buildImg = require('@clinic/clinic-common/scripts/build-images')
// build images
const path = require('path')
const imgDestDir = path.join(__dirname, '../visualizer/assets/images')
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const systemInfo = require('./collect/system-info.js')
const inlinedFunctions = require('./collect/inlined-functions.js')
const analyse = require('./analysis/index.js')
const pump = require('pump')
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 ClinicFlame extends events.EventEmitter {
constructor (settings = {}) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nearform/flame",
"version": "9.1.0",
"name": "@clinic/flame",
"version": "10.0.0",
"engines": {
"node": ">= 12.13.0"
},
Expand Down Expand Up @@ -29,7 +29,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@nearform/clinic-common": "^6.0.0",
"@clinic/clinic-common": "^7.0.0",
"0x": "^4.10.2",
"copy-to-clipboard": "^3.0.8",
"d3-array": "^2.0.2",
Expand Down
8 changes: 4 additions & 4 deletions visualizer/filters-bar.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict'
const HtmlContent = require('./html-content.js')
const sidePanelExpand = require('@nearform/clinic-common/icons/sidepanel-expand')
const sidePanelCollapse = require('@nearform/clinic-common/icons/sidepanel-collapse')
const search = require('@nearform/clinic-common/icons/search')
const sidePanelExpand = require('@clinic/clinic-common/icons/sidepanel-expand')
const sidePanelCollapse = require('@clinic/clinic-common/icons/sidepanel-collapse')
const search = require('@clinic/clinic-common/icons/search')

const { button, checkbox, dropdown } = require('@nearform/clinic-common/base')
const { button, checkbox, dropdown } = require('@clinic/clinic-common/base')

class FiltersContainer extends HtmlContent {
constructor (parentContent, contentProperties = {}) {
Expand Down
2 changes: 1 addition & 1 deletion visualizer/filters-content.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const HtmlContent = require('./html-content.js')
const { checkbox, accordion, helpers } = require('@nearform/clinic-common/base')
const { checkbox, accordion, helpers } = require('@clinic/clinic-common/base')

class FiltersContent extends HtmlContent {
constructor (parentContent, contentProperties = {}) {
Expand Down
8 changes: 4 additions & 4 deletions visualizer/flame-graph-tooltip-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const d3 = require('./d3.js')
const Message = require('./message.js')
const copy = require('copy-to-clipboard')
const zoomInIcon = require('@nearform/clinic-common/icons/zoom-in')
const zoomOutIcon = require('@nearform/clinic-common/icons/zoom-out')
const linkIcon = require('@nearform/clinic-common/icons/link')
const copyIcon = require('@nearform/clinic-common/icons/copy')
const zoomInIcon = require('@clinic/clinic-common/icons/zoom-in')
const zoomOutIcon = require('@clinic/clinic-common/icons/zoom-out')
const linkIcon = require('@clinic/clinic-common/icons/link')
const copyIcon = require('@clinic/clinic-common/icons/copy')

class FgTooltipContent {
constructor (ui) {
Expand Down
2 changes: 1 addition & 1 deletion visualizer/info-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const d3 = require('./d3.js')
const HtmlContent = require('./html-content.js')
const getNoDataNode = require('./no-data-node.js')
const caretUpIcon = require('@nearform/clinic-common/icons/caret-up')
const caretUpIcon = require('@clinic/clinic-common/icons/caret-up')

const stripTags = html => html.replace(/(<([^>]+)>)/ig, '')

Expand Down
4 changes: 2 additions & 2 deletions visualizer/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'
require('@nearform/clinic-common/spinner')
require('@clinic/clinic-common/spinner')
const Ui = require('./ui.js')
const loadFonts = require('@nearform/clinic-common/behaviours/font-loader')
const loadFonts = require('@clinic/clinic-common/behaviours/font-loader')

// Create UI
const ui = new Ui('main')
Expand Down
10 changes: 5 additions & 5 deletions visualizer/selection-controls.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict'

const HtmlContent = require('./html-content.js')
const chevronLeftFirst = require('@nearform/clinic-common/icons/chevron-left-first')
const chevronLeft = require('@nearform/clinic-common/icons/chevron-left')
const chevronRight = require('@nearform/clinic-common/icons/chevron-right')
const chevronRightLast = require('@nearform/clinic-common/icons/chevron-right-last')
const chevronLeftFirst = require('@clinic/clinic-common/icons/chevron-left-first')
const chevronLeft = require('@clinic/clinic-common/icons/chevron-left')
const chevronRight = require('@clinic/clinic-common/icons/chevron-right')
const chevronRightLast = require('@clinic/clinic-common/icons/chevron-right-last')

const button = require('@nearform/clinic-common/base/button.js')
const button = require('@clinic/clinic-common/base/button.js')

class SelectionControls extends HtmlContent {
constructor (parentContent, contentProperties = {}) {
Expand Down
6 changes: 3 additions & 3 deletions visualizer/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '@nearform/clinic-common/styles/styles.css';
@import '@nearform/clinic-common/base/style.css';
@import '@clinic/clinic-common/styles/styles.css';
@import '@clinic/clinic-common/base/style.css';
@import "./walkthrough-steps.css";
@import "./toolbar.css";
@import "./stack-bar.css";
Expand All @@ -10,7 +10,7 @@
@import "./tooltip.css";
@import "./selection-controls.css";
@import "./info-box.css";
@import "@nearform/clinic-common/spinner/style.css";
@import "@clinic/clinic-common/spinner/style.css";
@import "./filters-bar.css";
@import "./filters-content.css";
@import "./side-bar.css";
Expand Down
2 changes: 1 addition & 1 deletion visualizer/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const HtmlContent = require('./html-content.js')
const { toHtml } = require('@nearform/clinic-common/base/helpers.js')
const { toHtml } = require('@clinic/clinic-common/base/helpers.js')

class Tooltip extends HtmlContent {
constructor (parentContent, contentProperties = {}) {
Expand Down
6 changes: 3 additions & 3 deletions visualizer/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const htmlContentTypes = require('./html-content-types.js')
const debounce = require('lodash.debounce')
const DataTree = require('./data-tree.js')
const History = require('./history.js')
const spinner = require('@nearform/clinic-common/spinner')
const spinner = require('@clinic/clinic-common/spinner')

const close = require('@nearform/clinic-common/icons/close')
const close = require('@clinic/clinic-common/icons/close')

const TooltipHtmlContent = require('./flame-graph-tooltip-content')
const getNoDataNode = require('./no-data-node.js')

const { button, walkthroughButton } = require('@nearform/clinic-common/base/index.js')
const { button, walkthroughButton } = require('@clinic/clinic-common/base/index.js')
const wtSteps = require('./walkthrough-steps.js')

class Ui extends events.EventEmitter {
Expand Down
2 changes: 1 addition & 1 deletion visualizer/walkthrough-steps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const link = require('@nearform/clinic-common/base/link.js')
const link = require('@clinic/clinic-common/base/link.js')

const docs = link({
label: 'Clinic Flame Documentation',
Expand Down

0 comments on commit dfcdd1d

Please sign in to comment.