Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.#namespace = Promise.resolve(u);
this.namespace_id = this.#namespace.id;
}
};
const PackageVersion = require('./package-version');
const Namespace = require('./namespace');
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
name: joi.string().min(1),
namespace: orm.fk(Namespace),
require_tfa: joi.boolean(),
version_integrities: joi.object().unknown(),
yanked: joi.boolean().default(false),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true),
tags: joi.object().unknown()
});
return this.#user;
}
set user(u) {
this.#user = Promise.resolve(u);
this.user_id = this.#user.id;
}
};
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
user: orm.fk(User),
value_hash: joi.string(),
description: joi.string(),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true)
});
this.name = name;
this.host = host;
this.created = created;
this.modified = modified;
this.active = active;
}
};
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
name: joi.string().min(1),
host: orm.fk(Host),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true)
});
return this.#namespace;
}
set namespace(n) {
this.#namespace = Promise.resolve(n);
this.namespace_id = this.#namespace.id;
}
};
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
package: orm.fk(Package),
namespace: orm.fk(Namespace),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true),
accepted: joi.boolean().default(true)
});
set namespace(u) {
this.#namespace = Promise.resolve(u);
this.namespace_id = this.#namespace.id;
}
};
const User = require('./user');
const Namespace = require('./namespace');
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
user: orm.fk(User),
namespace: orm.fk(Namespace),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true),
accepted: joi.boolean().default(true)
});
set user(u) {
this.#user = Promise.resolve(u);
this.user_id = this.#user.id;
}
};
const User = require('./user');
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
user: orm.fk(User),
remote_identity: joi.string(),
provider: joi.any().allow(['github']),
access_token_enc: joi.string(),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true)
});
}
set namespace(n) {
this.#namespace = Promise.resolve(n);
this.namespace_id = this.#namespace.id;
}
};
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
package: orm.fk(Package),
namespace: orm.fk(Namespace),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true),
accepted: joi.boolean().default(true)
});
set parent(p) {
this.#parent = Promise.resolve(p);
this.parent_id = this.#parent.id;
}
};
const Package = require('./package');
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
version: joi.string().min(1),
parent: orm.fk(Package),
yanked: joi.boolean().default(false),
files: joi.object().unknown(),
derivedFiles: joi.object().unknown(),
signatures: joi.array().items(joi.string()),
dependencies: joi.object().unknown(),
devDependencies: joi.object().unknown(),
peerDependencies: joi.object().unknown(),
optionalDependencies: joi.object().unknown(),
bundledDependencies: joi.object().unknown(),
active: joi.boolean().default(true),
created: joi.date(),
modified: joi.date()
});
this.#namespace = Promise.resolve(u);
this.namespace_id = this.#namespace.id;
}
};
const User = require('./user');
const Namespace = require('./namespace');
module.exports.objects = orm(module.exports, {
id: joi
.number()
.integer()
.greater(-1)
.required(),
user: orm.fk(User),
namespace: orm.fk(Namespace),
created: joi.date(),
modified: joi.date(),
active: joi.boolean().default(true),
accepted: joi.boolean().default(true)
});