Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@heduapp/book-objects-db
Advanced tools
## Usage ### Install - Configure [SSH Config](http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/) to access GitHub. - Pick your version, from [releases](https://github.com/HeduApp/book-objects/releases). ``` npm install git+ssh://
npm install git+ssh://ssh-config-name:HeduApp/book-objects-db.git#v0.1.0
npm install objection knex mysql
import { DBCodec } from '@heduapp/book-objects-db';
const dbCodec = new DBCodec({
client: 'mysql',
connection: {
host: '127.0.0.1',
user: 'bo',
password: 'bo',
database: 'bo-dev',
},
seeds: {
directory: './seeds/production',
}
});
import * as BO from '@heduapp/book-objects/business-object'
import { DBCodec } form '@heduapp/book-objects-db'
const dbCodec = new DBCodec();
const book = (await dbCodec.decode(bookUUID)) as BO.Book;
import { DBCodec, Model } form '@heduapp/book-objects-db'
const dbCodec = new DBCodec();
// Encoder can return either inserted ContentGroup or ContentLeaf
const insertedBook = (await dbCodec.encode(book)) as Model.ContentGroup;
await insertedBook.$loadRelated('[children.[contentLeafs.[locale], locale], locale]');
npx cross-env NODE_ENV=development knex --knexfile src/knexfile.ts --cwd ./ migrate:latest
npx knex --knexfile src/knexfile.ts --cwd ./ migrate:rollback
migrations/
directorynpx knex --knexfile src/knexfile.ts --cwd ./ migrate:make migration_name
npx knex --knexfile src/knexfile.ts --cwd ./ seed:run
npx knex --knexfile src/knexfile.ts --cwd ./ seed:make xxx-seed_name
pgpass
config file
~/.pgpass
%APPDATA%\postgresql\pgpass.conf
hostname:port:database:username:password
localhost:5433:h_edu_sro1252:h_edu_sro1252:password
localhost:5432:bo-dev:bo:bo
ssh -L 5433:store4.rosti.cz:5432 -p 14364 user@node-14.rosti.cz
scripts/copy-db.sh
./scripts/copy-db.sh [remote-db-name] [local-db-name]
h_edu_sro1252@localhost:5433
to bo-dev@localhost:5432
.backup
file in the current working directory, and name it like remote-db-name_2019-01-10-16-48-19.backup
Start the containers:
docker-compose -f docker/db-dev.yml up -d
Stop the containers:
docker-compose -f docker/db-dev.yml down
8080
Adminer for managing the DB3306
MySQLbo-dev
bo
bo
root
root
Alsatian is used as a testing framework and test runner. To run tests:
npm run test
npm run test-watch
Code style is enforced by prettier To prettify code:
npm run prettier
npm run prettier-watch
git checkout dist
git merge master # Resolve conflicts, accepting changes from master
npm run build
git add --all
git commit -m "Add vX.X.X build"
npm version major|minor|patch # Should be same as the version in the commit message
git push origin dist
FAQs
## Usage ### Install - Configure [SSH Config](http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/) to access GitHub. - Pick your version, from [releases](https://github.com/HeduApp/book-objects/releases). ``` npm install git+ssh://
The npm package @heduapp/book-objects-db receives a total of 39 weekly downloads. As such, @heduapp/book-objects-db popularity was classified as not popular.
We found that @heduapp/book-objects-db demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.