New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bos-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bos-cli - npm Package Compare versions

Comparing version 0.3.9 to 0.3.11

50

binary.js

@@ -13,7 +13,8 @@ const { Binary } = require("binary-install");

const { version } = require("./package.json");
// These are injected by cargo-dist
const name = "bos-cli";
const artifact_download_url = "https://github.com/bos-cli-rs/bos-cli-rs/releases/download/v0.3.9";
const artifact_download_url = "https://github.com/bos-cli-rs/bos-cli-rs/releases/download/v0.3.11";
// These are injected by cargo-dist
const builder_glibc_major_version = 2;
const builder_glibc_minor_version = 35;
const supportedPlatforms = {

@@ -71,17 +72,8 @@ "aarch64-apple-darwin": {

// Assume the above succeeded and build a target triple to look things up with.
// If any of it failed, this lookup will fail and we'll handle it like normal.
let target_triple = `${arch}-${os_type}`;
let platform = supportedPlatforms[target_triple];
if (!platform) {
error(
`Platform with type "${raw_os_type}" and architecture "${raw_architecture}" is not supported by ${name}.\nYour system must be one of the following:\n\n${Object.keys(supportedPlatforms).join(",")}`
);
}
// These are both situation where you might toggle to unknown-linux-musl but we don't support that yet
if (raw_os_type === "Linux") {
if (libc.isNonGlibcLinuxSync()) {
error("This operating system does not support dynamic linking to glibc.");
if (libc.familySync() == 'musl') {
os_type = "unknown-linux-musl-dynamic";
} else if (libc.isNonGlibcLinuxSync()) {
console.warn("Your libc is neither glibc nor musl; trying static musl binary instead");
os_type = "unknown-linux-musl-static";
} else {

@@ -92,11 +84,10 @@ let libc_version = libc.versionSync();

let libc_minor_version = split_libc_version[1];
let min_major_version = 2;
let min_minor_version = 17;
if (
libc_major_version < min_major_version ||
libc_minor_version < min_minor_version
libc_major_version != builder_glibc_major_version ||
libc_minor_version < builder_glibc_minor_version
) {
error(
`This operating system needs glibc >= ${min_major_version}.${min_minor_version}, but only has ${libc_version} installed.`
);
// We can't run the glibc binaries, but we can run the static musl ones
// if they exist
console.warn("Your glibc isn't compatible; trying static musl binary instead");
os_type = "unknown-linux-musl-static";
}

@@ -106,2 +97,13 @@ }

// Assume the above succeeded and build a target triple to look things up with.
// If any of it failed, this lookup will fail and we'll handle it like normal.
let target_triple = `${arch}-${os_type}`;
let platform = supportedPlatforms[target_triple];
if (!platform) {
error(
`Platform with type "${raw_os_type}" and architecture "${raw_architecture}" is not supported by ${name}.\nYour system must be one of the following:\n\n${Object.keys(supportedPlatforms).join(",")}`
);
}
return platform;

@@ -108,0 +110,0 @@ };

@@ -10,2 +10,14 @@ # Changelog

## [0.3.11](https://github.com/bos-cli-rs/bos-cli-rs/compare/v0.3.10...v0.3.11) - 2024-01-23
### Other
- Upgraded NEAR crates to 0.20.0 release ([#88](https://github.com/bos-cli-rs/bos-cli-rs/pull/88))
- Updated binary releases pipeline to use cargo-dist v0.7.2 (previously v0.1.0-prerelease.3) ([#87](https://github.com/bos-cli-rs/bos-cli-rs/pull/87))
- Added the documentation for `--social-db-folder` option in components subcommand ([#85](https://github.com/bos-cli-rs/bos-cli-rs/pull/85))
## [0.3.10](https://github.com/bos-cli-rs/bos-cli-rs/compare/v0.3.9...v0.3.10) - 2024-01-16
### Added
- Updated new project template ot the latest version
## [0.3.9](https://github.com/bos-cli-rs/bos-cli-rs/compare/v0.3.8...v0.3.9) - 2024-01-15

@@ -12,0 +24,0 @@

{
"name": "bos-cli",
"version": "0.3.9",
"version": "0.3.11",
"lockfileVersion": 3,

@@ -9,3 +9,3 @@ "requires": true,

"name": "bos-cli",
"version": "0.3.9",
"version": "0.3.11",
"license": "MIT OR Apache-2.0",

@@ -12,0 +12,0 @@ "hasInstallScript": true,

{
"name": "bos-cli",
"version": "0.3.9",
"version": "0.3.11",
"description": "Command line utility helps to develop widgets for near.social by allowing developers to use standard developer tools like their best code editor and standard tools for source code version control, and then deploy their widgets to SocialDB in one command.",
"repository": "https://github.com/bos-cli-rs/bos-cli-rs",
"license": "MIT OR Apache-2.0",
"contributors": ["FroVolod <frol_off@meta.ua>","frol <frolvlad@gmail.com>"],
"license": "MIT OR Apache-2.0",
"bin": {

@@ -11,0 +9,0 @@ "bos": "run.js"

@@ -24,4 +24,12 @@ # BOS CLI

- `download` allows you to download the existing components from any near.social account to the local `./src` folder.
- `delete` allows you to delete the existing components from any near.social account.
- `delete` allows you to delete the existing components from any near.social account.
> *Note:*
>
> *By default, the Social DB prefix is computed as `<account-id>/widget/<component-folder>.<component-name>`.
> If you wish, you can change the default folder (`widget`) using CLI option: `--social-db-folder`:*
> ```sh
> bos components --social-db-folder "component_beta" download ...
> ```
### socialdb - SocialDb management

@@ -28,0 +36,0 @@

#!/usr/bin/env node
const { run, install: maybeInstall } = require("./binary");
maybeInstall(true).then(run);
maybeInstall(true).then(run);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc