Răsfoiți Sursa

some fixups

George S. Baugh 5 ani în urmă
părinte
comite
bbf4d21a00
5 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 1 0
      .gitignore
  2. 1 1
      bin/playwright.js
  3. 0 1
      dist.ini
  4. 3 3
      lib/Playwright.pm
  5. 1 1
      t/Playwright-Base.t

+ 1 - 0
.gitignore

@@ -15,6 +15,7 @@ nytprof.out
 
 # Dizt::Zilla
 /.build/
+Playwright-*/
 
 # Module::Build
 _build/

+ 1 - 1
bin/playwright.js

@@ -40,7 +40,7 @@ var userdata = {};
 app.use(express.json())
 
 app.post('/session', async (req, res) => {
-	var payload = req.body;
+    var payload = req.body;
     var type    = payload.type;
     var args    = payload.args || [];
 

+ 0 - 1
dist.ini

@@ -16,7 +16,6 @@ except = \.travis.yml
 [ManifestSkip]
 [MetaYAML]
 [MetaJSON]
-[License]
 [Readme]
 [ExtraTests]
 [ExecDir]

+ 3 - 3
lib/Playwright.pm

@@ -83,7 +83,7 @@ The same restriction on only being able to pass one arg remains from the upstrea
 L<https://playwright.dev/#version=master&path=docs%2Fapi.md&q=pageevaluatepagefunction-arg>
 
 You will have to refer to the arguments array as described here:
-L<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments> 
+L<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments>
 
 =head2 Asynchronous operations
 
@@ -268,7 +268,7 @@ sub await ($self, $promise) {
     my $obj = $promise->result(1);
     return $obj unless $obj->{_type};
     my $class = "Playwright::$obj->{_type}";
-    return $class->new( type => $obj->{_type}, id => $obj->{_guid}, handle => $self ); 
+    return $class->new( type => $obj->{_type}, id => $obj->{_guid}, handle => $self );
 }
 
 =head2 quit, DESTROY
@@ -283,7 +283,7 @@ sub quit ($self) {
     #Prevent destructor from firing in child processes so we can do things like async()
     return unless $$ == $self->{parent};
 
-    Playwright::Util::request ('GET', 'shutdown', $self->{port}, $self->{ua} ); 
+    Playwright::Util::request ('GET', 'shutdown', $self->{port}, $self->{ua} );
     return waitpid($self->{pid},0);
 }
 

+ 1 - 1
t/Playwright-Base.t

@@ -45,7 +45,7 @@ local *Playwright::Fake::new = sub {
         type => $options{type},
         guid => $options{id},
         ua   => $options{handle}{ua},
-        port => $options{handle}{port}, 
+        port => $options{handle}{port},
     }, $class);
 };
 use warnings;