@epsilon-asi/actors 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epsilon-asi/actors",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "A TypeScript Puppeteer actor framework using existing Chrome profiles and ghost-cursor.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -75,6 +75,8 @@ export class DefaultNativeFileDialogService {
75
75
 
76
76
  private async assertFileExists(filePath: string): Promise<void> {
77
77
  const stat = await fs.stat(filePath).catch(() => null);
78
+ console.log(filePath);
79
+ console.log(stat);
78
80
  if (stat === null || !stat.isFile()) {
79
81
  throw new NativeFileDialogError('Cannot select file because the path does not exist or is not a file.', {
80
82
  filePath: redactPath(filePath, this.deps.revealFilePathsInLogs)
@@ -63,7 +63,8 @@ export const upworkComActor = defineActor({
63
63
  }),
64
64
  tasks: {
65
65
  test: async (context, input) => {
66
- await context.native.fileDialogs.selectFile('/Users/chris/LocalWorkspace/test.png')
66
+ //@ts-ignore
67
+ await context.native.fileDialogs.selectFile(process.env.TEST)
67
68
  await context.native.mouse.moveTo({x: 100, y: 200})
68
69
  },
69
70
  searchJobs: async (context, input: UpworkJobSearchFields = {}): Promise<UpworkJobListing[]> => {