
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
✨ A simple, strictly typed ORM, to assist you in using Cloudflare's D1 product
Docs can be found at https://docs.interactions.rest/d1-orm/
API reference can be found at https://orm.interactions.rest/modules
This package can be found on NPM
npm install d1-orm
This package is recommended to be used with @cloudflare/workers-types 3.16.0+.
import { D1Orm, DataTypes, Model } from "d1-orm";
import type { Infer } from "d1-orm";
export interface Env {
// from @cloudflare/workers-types
DB: D1Database;
}
export default {
async fetch(request: Request, env: Env) {
const orm = new D1Orm(env.DB);
const users = new Model(
{
D1Orm: orm,
tableName: "users",
primaryKeys: "id",
autoIncrement: "id",
uniqueKeys: [["email"]],
},
{
id: {
type: DataTypes.INTEGER,
notNull: true,
},
name: {
type: DataTypes.STRING,
notNull: true,
defaultValue: "John Doe",
},
email: {
type: DataTypes.STRING,
},
},
);
type User = Infer<typeof users>;
await users.First({
where: {
id: 1,
},
});
// Promise<User | null>
},
};
For more information, refer to the docs.
FAQs
A simple strictly typed ORM for Cloudflare's D1 product
The npm package d1-orm receives a total of 29 weekly downloads. As such, d1-orm popularity was classified as not popular.
We found that d1-orm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.