8000 feat: Add profiler to plugin bundle (#47) · iopipe/iopipe-js@2400709 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 2400709

Browse files
authored
feat: Add profiler to plugin bundle (#47)
* feat: Add profiler to plugin bundle * Upgrade @iopipe/config to v1.4.1
1 parent 9fc3775 commit 2400709

File tree

3 files changed

+219
-24
lines changed

3 files changed

+219
-24
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"node": ">=4.3.2"
3939
},
4040
"dependencies": {
41-
"@iopipe/config": "^1.3.2",
42-
"@iopipe/core": "^1.17.4"
41+
"@iopipe/config": "^1.4.1",
42+
"@iopipe/core": "^1.18.0"
4343
},
4444
"devDependencies": {
4545
"@iopipe/scripts": "^1.4.1",

src/index.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('lib warns correctly for getContext methods', () => {
1919
});
2020

2121
describe( AC85 'iopipe kitchen sink', () => {
22-
it('has trace and event info plugins pre-bundled', done => {
22+
it('has trace, event info and profiler plugins pre-bundled', done => {
2323
let invocation;
2424
iopipe({
2525
clientId: 'foobar',
@@ -28,11 +28,12 @@ describe('iopipe kitchen sink', () => {
2828
try {
2929
const { config } = context.iopipe;
3030

31-
expect(invocation.plugins).toHaveLength(3);
31+
expect(invocation.plugins).toHaveLength(4);
3232
expect(invocation.plugins.map(p => p.meta.name)).toEqual([
3333
'wow',
3434
'@iopipe/trace',
35-
'@iopipe/event-info'
35+
'@iopipe/event-info',
36+
'@iopipe/profiler'
3637
]);
3738

3839
expect(_.isFunction(config.plugins[0])).toBe(true);

0 commit comments

Comments
 (0)
0