chore: import upstream snapshot with attribution
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1 @@
|
||||
bcrypt==4.0.1
|
||||
@@ -0,0 +1,2 @@
|
||||
def mul(a,b):
|
||||
return a*b
|
||||
@@ -0,0 +1,8 @@
|
||||
from js import Response
|
||||
from other import add
|
||||
from arith import mul
|
||||
import bcrypt
|
||||
def on_fetch(request):
|
||||
password = b"super secret password"
|
||||
hashed = bcrypt.hashpw(password, bcrypt.gensalt(14))
|
||||
return Response.new(f"Hi world {add(1,2)} {mul(2,3)} {hashed}")
|
||||
@@ -0,0 +1,2 @@
|
||||
def add(a, b):
|
||||
return a + b
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "dep-python-worker",
|
||||
"main": "src/index.py",
|
||||
"compatibility_flags": ["python_workers"],
|
||||
"compatibility_date": "2024-01-29",
|
||||
}
|
||||
Reference in New Issue
Block a user