From 21615bdd1400d948f609ff57cd19950aba38b4b6 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Mon, 21 Sep 2020 14:13:21 -0700 Subject: [PATCH 1/3] update packages --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b68399..f5bcf09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6492,9 +6492,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true }, "lodash._baseisequal": { From a98e0d979894b73d003fc27b8d5ea24b43ff3184 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Mon, 21 Sep 2020 14:22:52 -0700 Subject: [PATCH 2/3] update type imports --- src/background/background.ts | 2 +- src/content-scripts/eventRecorder.ts | 2 +- src/helpers/codeGenerator.ts | 2 +- src/helpers/model.ts | 2 +- src/popup/components/App.tsx | 2 +- src/popup/components/Body.tsx | 3 +-- src/popup/components/CodeDisplay.tsx | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/background/background.ts b/src/background/background.ts index 36bd51c..285c0d7 100644 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -7,7 +7,7 @@ */ import codeGenerator from '../helpers/codeGenerator'; -import { +import type { ActionWithPayload, ParsedEvent, Session, diff --git a/src/content-scripts/eventRecorder.ts b/src/content-scripts/eventRecorder.ts index 9d706ac..402d611 100644 --- a/src/content-scripts/eventRecorder.ts +++ b/src/content-scripts/eventRecorder.ts @@ -4,7 +4,7 @@ * Responsible for recording the DOM events. */ import finder from '@medv/finder'; -import { ParsedEvent } from '../types'; +import type { ParsedEvent } from '../types'; import { EventType } from '../constants'; let port: chrome.runtime.Port; diff --git a/src/helpers/codeGenerator.ts b/src/helpers/codeGenerator.ts index a0afe38..2358da9 100644 --- a/src/helpers/codeGenerator.ts +++ b/src/helpers/codeGenerator.ts @@ -4,7 +4,7 @@ * Each time the user records, this function will generate a cy.visit command that will * store the current url, as well each subsequest user interaction with the browser. */ -import { ParsedEvent } from '../types'; +import type { ParsedEvent } from '../types'; import { EventType } from '../constants'; /** diff --git a/src/helpers/model.ts b/src/helpers/model.ts index c546bb9..146381d 100644 --- a/src/helpers/model.ts +++ b/src/helpers/model.ts @@ -1,5 +1,5 @@ import { generate } from 'shortid'; -import { Block } from '../types'; +import type { Block } from '../types'; import { RecState } from '../constants'; export default class Model { diff --git a/src/popup/components/App.tsx b/src/popup/components/App.tsx index 6fc8733..8094a3d 100644 --- a/src/popup/components/App.tsx +++ b/src/popup/components/App.tsx @@ -3,7 +3,7 @@ import Header from './Header'; import Info from './Info'; import Footer from './Footer'; import Body from './Body'; -import { Block, ActionWithPayload } from '../../types'; +import type { Block, ActionWithPayload } from '../../types'; import { ControlAction, RecState } from '../../constants'; import '../../assets/styles/styles.scss'; diff --git a/src/popup/components/Body.tsx b/src/popup/components/Body.tsx index c60eabc..f07083f 100644 --- a/src/popup/components/Body.tsx +++ b/src/popup/components/Body.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; -import { Block } from '../../types'; +import type { Block } from '../../types'; import { RecState } from '../../constants'; - import CodeDisplay from './CodeDisplay'; import LandingBox from './LandingBox'; diff --git a/src/popup/components/CodeDisplay.tsx b/src/popup/components/CodeDisplay.tsx index d3a0e36..4d64534 100644 --- a/src/popup/components/CodeDisplay.tsx +++ b/src/popup/components/CodeDisplay.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import CodeBlock from './CodeBlock'; -import { Block } from '../../types'; +import type { Block } from '../../types'; export interface CodeDisplayProps { codeBlocks: Block[], From c0930bbedd742bb955b9ffbcbf2f9ef7c2ef1316 Mon Sep 17 00:00:00 2001 From: Adam Stover Date: Mon, 21 Sep 2020 14:47:09 -0700 Subject: [PATCH 3/3] 1.0.5 --- package.json | 2 +- src/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 77f5033..0743787 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress-recorder", - "version": "1.0.4", + "version": "1.0.5", "description": "Records a user session and generates cypress code for automation and testing purposes.", "main": "index.js", "scripts": { diff --git a/src/manifest.json b/src/manifest.json index f3defa2..2e2320c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "name": "Cypress Recorder", "short_name": "Cypress Rec", - "version": "1.0.4", + "version": "1.0.5", "description": "Records a user session and generates cypress code for automation and testing purposes.", "manifest_version": 2, "permissions": [