Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oasislabs/parcel

Package Overview
Dependencies
Maintainers
15
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oasislabs/parcel - npm Package Compare versions

Comparing version 1.0.0-beta.14 to 1.0.0-fix-1926689305.1

16

lib/compute.d.ts

@@ -43,2 +43,14 @@ import type { Opaque } from 'type-fest';

/**
* Network entities defined by CIDR-style masks.
*/
export declare type NetworkPolicyPeer = {
cidr: string;
};
/**
* The set of rules that define how a job is allowed to communicate with various network entities.
*/
export declare type NetworkPolicy = {
egress?: NetworkPolicyPeer[];
};
/**
* A specification/manifest for the job. This is a complete description of what

@@ -75,2 +87,6 @@ * and how the job should run.

/**
* IP addresses (or CIDR-style masks) to which a job can open a connection during execution, e.g. `192.168.1.1/24`, or `2001:db9::/64`.
*/
networkPolicy?: NetworkPolicy;
/**
* Documents to download and mount into the job's container before `cmd` runs.

@@ -77,0 +93,0 @@ * If any of these documents do not exist or you do not have permission to access them, the job will fail.

2

lib/identity.js

@@ -23,3 +23,3 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

const endpointForTokens = (id) => `${endpointForId(id)}/tokens`;
const endpointForToken = (id, token) => `${endpointForTokens(id)}/tokens/${token}`;
const endpointForToken = (id, token) => `${endpointForTokens(id)}/${token}`;
export class Identity {

@@ -26,0 +26,0 @@ constructor(client, pod) {

@@ -26,4 +26,4 @@ /**

import { PARCEL_RUNTIME_AUD } from './token.js';
import type { EthAddr, EthBridge, EthBridgeGasParams, EthBridgeType, Token, TokenBalance, TokenCreateParams, TokenGrantSpec, TokenId, TokenSearchParams, TokenizationReceipt, TransferReceipt, TransferReceiptId } from './tokenization.js';
export { AccessContext, AccessEvent, ApiError, App, AppCreateParams, AppId, AppUpdateParams, AssetId, BackendClient, BackendClientCreateParams, BackendClientUpdateParams, Capabilities, Client, ClientCreateParams, ClientCredentials, ClientId, ClientType, Condition, Database, DatabaseCreateParams, DatabaseId, DatabaseUpdateParams, Document, DocumentId, DocumentUpdateParams, DocumentUploadParams, Download, EscrowedAsset, EscrowedAssetSearchParams, EthAddr, EthBridge, EthBridgeGasParams, EthBridgeType, FrontendClient, FrontendClientCreateParams, FrontendClientUpdateParams, GetUsageFilter, Grant, GrantCreateParams, GrantId, GrantedPermission, Identity, IdentityCreateParams, IdentityId, IdentityUpdateParams, InputDocumentSpec, Job, JobId, JobPhase, JobSpec, JobStatus, JobStatusReport, MeteringQuota, MeteringReport, OutputDocument, OutputDocumentSpec, PARCEL_RUNTIME_AUD, Page, PageParams, Permission, PermissionCreateParams, PermissionId, PrivateJWK, PublicJWK, QuotaUpdateParams, RefreshingTokenProviderParams, RenewingTokenProviderParams, Scope, SelfIssuedTokenProviderParams, ServiceClient, ServiceClientCreateParams, ServiceClientUpdateParams, Storable, Token, TokenBalance, TokenCreateParams, TokenGrantSpec, TokenId, TokenSearchParams, TokenSource, TokenizationReceipt, TransferReceipt, TransferReceiptId, };
import type { EthAddr, RemoteToken, Token, TokenBalance, TokenCreateParams, TokenGrantSpec, TokenId, TokenSearchParams, TokenTransferability, TokenizationReceipt, TransferReceipt, TransferReceiptId } from './tokenization.js';
export { AccessContext, AccessEvent, ApiError, App, AppCreateParams, AppId, AppUpdateParams, AssetId, BackendClient, BackendClientCreateParams, BackendClientUpdateParams, Capabilities, Client, ClientCreateParams, ClientCredentials, ClientId, ClientType, Condition, Database, DatabaseCreateParams, DatabaseId, DatabaseUpdateParams, Document, DocumentId, DocumentUpdateParams, DocumentUploadParams, Download, EscrowedAsset, EscrowedAssetSearchParams, EthAddr, FrontendClient, FrontendClientCreateParams, FrontendClientUpdateParams, GetUsageFilter, Grant, GrantCreateParams, GrantId, GrantedPermission, Identity, IdentityCreateParams, IdentityId, IdentityUpdateParams, InputDocumentSpec, Job, JobId, JobPhase, JobSpec, JobStatus, JobStatusReport, MeteringQuota, MeteringReport, OutputDocument, OutputDocumentSpec, PARCEL_RUNTIME_AUD, Page, PageParams, Permission, PermissionCreateParams, PermissionId, PrivateJWK, PublicJWK, QuotaUpdateParams, RefreshingTokenProviderParams, RemoteToken, RenewingTokenProviderParams, Scope, SelfIssuedTokenProviderParams, ServiceClient, ServiceClientCreateParams, ServiceClientUpdateParams, Storable, Token, TokenBalance, TokenCreateParams, TokenGrantSpec, TokenId, TokenSearchParams, TokenSource, TokenTransferability, TokenizationReceipt, TransferReceipt, TransferReceiptId, };
/**

@@ -30,0 +30,0 @@ * Example:

@@ -14,5 +14,4 @@ import type { Except, Opaque } from 'type-fest';

grant: TokenGrantSpec;
supply: number;
consumesAssets: boolean;
ethBridge: EthBridge;
transferability: TokenTransferability;
}>;

@@ -26,5 +25,4 @@ export declare class Token implements Model {

readonly grant: TokenGrantSpec;
readonly supply: number;
readonly consumesAssets: boolean;
readonly ethBridge: EthBridge;
readonly transferability: TokenTransferability;
constructor(client: HttpClient, pod: PODToken);

@@ -60,8 +58,7 @@ delete(): Promise<void>;

grant: TokenGrantSpec;
supply: number;
consumesAssets?: boolean;
ethBridge?: EthBridge;
transferability: TokenTransferability;
};
export declare type TokenGrantSpec = {
condition?: Condition | null;
condition: Condition | null;
capabilities?: Capabilities;

@@ -74,32 +71,26 @@ };

export declare type EthAddr = string;
export declare namespace EthBridge {
type Managed = {
type: 'managed';
export declare namespace TokenTransferability {
type Parcel = {
parcel: {
supply: number;
};
};
type ERC20 = {
type: 'erc20';
address: EthAddr;
gas: EthBridgeGasParams;
type Remote = {
remote: RemoteToken;
};
type ERC721 = {
type: 'erc721';
}
export declare type TokenTransferability = TokenTransferability.Parcel | TokenTransferability.Remote;
export declare namespace RemoteToken {
type EthLike = {
network: EthNetwork;
address: EthAddr;
gas: EthBridgeGasParams;
/** Hex-encoded U256. */
optionId: string;
/**
* The option ID. Required when `abi` is `erc721` or `erc1155`.
* Only values less than 2^63 - 1 are currently supported.
*/
optionId?: number;
};
type ERC1155 = {
type: 'erc1155';
address: EthAddr;
gas: EthBridgeGasParams;
/** Hex-encoded U256. */
optionId: string;
};
}
export declare type EthBridge = EthBridge.Managed | EthBridge.ERC20 | EthBridge.ERC721 | EthBridge.ERC1155;
export declare type EthBridgeType = 'managed' | 'erc20' | 'erc721' | 'erc1155';
export declare type EthBridgeGasParams = {
limit: number;
price: 'slow' | 'standard' | 'fast';
};
export declare type RemoteToken = RemoteToken.EthLike;
export declare type EthNetwork = 'emerald';
export declare type TokenSearchParams = {

@@ -106,0 +97,0 @@ /** Search for tokens held by this identity. */

@@ -30,5 +30,4 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

this.grant = pod.grant;
this.supply = pod.supply;
this.consumesAssets = pod.consumesAssets;
this.ethBridge = pod.ethBridge;
this.transferability = pod.transferability;
}

@@ -35,0 +34,0 @@ async delete() {

{
"name": "@oasislabs/parcel",
"version": "1.0.0-beta.14",
"version": "1.0.0-beta.15",
"license": "Apache-2.0",

@@ -34,4 +34,6 @@ "author": "Oasis Labs <feedback@oasislabs.com>",

"prepublishOnly": "yarn build",
"prepack": "echo 'Normalize permissions for packing...'; find README.md package.json lib src -type f -exec chmod 664 {} \\;",
"consistent-pack": "docker run -v \"${PWD}:${PWD}\" --workdir \"${PWD}\" --user \"${UID}:${GID}\" -it node:14-alpine npm pack"
"normalize-permissions-for-packing": "find README.md package.json lib src -type f -exec chmod 664 {} \\;",
"prepack": "npm run normalize-permissions-for-packing",
"consistent-pack": "tools/consistent-pack.sh",
"pack-and-print-integrity-sha": "npm pack --unsafe-perm --silent --json | jq -r '.[].integrity'"
},

@@ -38,0 +40,0 @@ "nyc": {

@@ -51,2 +51,16 @@ import type { Opaque } from 'type-fest';

/**
* Network entities defined by CIDR-style masks.
*/
export declare type NetworkPolicyPeer = {
cidr: string;
};
/**
* The set of rules that define how a job is allowed to communicate with various network entities.
*/
export declare type NetworkPolicy = {
egress?: NetworkPolicyPeer[];
};
/**
* A specification/manifest for the job. This is a complete description of what

@@ -87,2 +101,7 @@ * and how the job should run.

/**
* IP addresses (or CIDR-style masks) to which a job can open a connection during execution, e.g. `192.168.1.1/24`, or `2001:db9::/64`.
*/
networkPolicy?: NetworkPolicy;
/**
* Documents to download and mount into the job's container before `cmd` runs.

@@ -89,0 +108,0 @@ * If any of these documents do not exist or you do not have permission to access them, the job will fail.

@@ -35,4 +35,3 @@ import type { Merge, Opaque, SetOptional } from 'type-fest';

const endpointForTokens = (id: IdentityId) => `${endpointForId(id)}/tokens`;
const endpointForToken = (id: IdentityId, token: TokenId) =>
`${endpointForTokens(id)}/tokens/${token}`;
const endpointForToken = (id: IdentityId, token: TokenId) => `${endpointForTokens(id)}/${token}`;

@@ -39,0 +38,0 @@ export class Identity implements Model {

@@ -87,5 +87,3 @@ /**

EthAddr,
EthBridge,
EthBridgeGasParams,
EthBridgeType,
RemoteToken,
Token,

@@ -97,2 +95,3 @@ TokenBalance,

TokenSearchParams,
TokenTransferability,
TokenizationReceipt,

@@ -135,5 +134,2 @@ TransferReceipt,

EthAddr,
EthBridge,
EthBridgeGasParams,
EthBridgeType,
FrontendClient,

@@ -172,2 +168,3 @@ FrontendClientCreateParams,

RefreshingTokenProviderParams,
RemoteToken,
RenewingTokenProviderParams,

@@ -187,2 +184,3 @@ Scope,

TokenSource,
TokenTransferability,
TokenizationReceipt,

@@ -189,0 +187,0 @@ TransferReceipt,

@@ -20,5 +20,4 @@ import type { Except, Opaque } from 'type-fest';

grant: TokenGrantSpec;
supply: number;
consumesAssets: boolean;
ethBridge: EthBridge;
transferability: TokenTransferability;
}

@@ -42,5 +41,4 @@ >;

public readonly grant: TokenGrantSpec;
public readonly supply: number;
public readonly consumesAssets: boolean;
public readonly ethBridge: EthBridge;
public readonly transferability: TokenTransferability;

@@ -55,5 +53,4 @@ #client: HttpClient;

this.grant = pod.grant;
this.supply = pod.supply;
this.consumesAssets = pod.consumesAssets;
this.ethBridge = pod.ethBridge;
this.transferability = pod.transferability;
}

@@ -195,9 +192,8 @@

grant: TokenGrantSpec;
supply: number;
consumesAssets?: boolean;
ethBridge?: EthBridge;
transferability: TokenTransferability;
};
export type TokenGrantSpec = {
condition?: Condition | null;
condition: Condition | null;
capabilities?: Capabilities;

@@ -213,39 +209,31 @@ };

export namespace EthBridge {
export type Managed = {
type: 'managed';
export namespace TokenTransferability {
export type Parcel = {
parcel: {
supply: number;
};
};
export type ERC20 = {
type: 'erc20';
address: EthAddr;
gas: EthBridgeGasParams;
export type Remote = {
remote: RemoteToken;
};
}
// eslint-disable-next-line @typescript-eslint/no-redeclare
export type TokenTransferability = TokenTransferability.Parcel | TokenTransferability.Remote;
export type ERC721 = {
type: 'erc721';
export namespace RemoteToken {
export type EthLike = {
network: EthNetwork;
address: EthAddr;
gas: EthBridgeGasParams;
/** Hex-encoded U256. */
optionId: string;
/**
* The option ID. Required when `abi` is `erc721` or `erc1155`.
* Only values less than 2^63 - 1 are currently supported.
*/
optionId?: number;
};
export type ERC1155 = {
type: 'erc1155';
address: EthAddr;
gas: EthBridgeGasParams;
/** Hex-encoded U256. */
optionId: string;
};
}
// eslint-disable-next-line @typescript-eslint/no-redeclare
export type EthBridge = EthBridge.Managed | EthBridge.ERC20 | EthBridge.ERC721 | EthBridge.ERC1155;
export type RemoteToken = RemoteToken.EthLike;
export type EthBridgeType = 'managed' | 'erc20' | 'erc721' | 'erc1155';
export type EthNetwork = 'emerald';
export type EthBridgeGasParams = {
limit: number;
price: 'slow' | 'standard' | 'fast';
};
export type TokenSearchParams = {

@@ -252,0 +240,0 @@ /** Search for tokens held by this identity. */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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