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

@yume-chan/struct

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yume-chan/struct - npm Package Compare versions

Comparing version 0.0.0-20240714132542 to 0.0.0-next-20240917062356

esm/basic/definition.spec.d.ts

13

CHANGELOG.md
# Change Log - @yume-chan/struct
## 0.0.0-20240714132542
## 0.0.0-next-20240917062356
### Major Changes
- 53688d3: Use PNPM workspace and Changesets to manage the monorepo.
Because Changesets doesn't support alpha versions (`0.x.x`), this version is `1.0.0`. Future versions will follow SemVer rules, for example, breaking API changes will introduce a new major version.
### Patch Changes
- Switch to PNPM workspace and changesets
- Updated dependencies
- @yume-chan/no-data-view@0.0.0-20240714132542
- Updated dependencies [53688d3]
- @yume-chan/no-data-view@0.0.0-next-20240917062356

@@ -11,0 +16,0 @@ This log was last generated on Tue, 18 Jun 2024 02:49:43 GMT and should not be manually modified.

export interface SyncPromise<T> {
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null | undefined): SyncPromise<TResult1 | TResult2>;
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): SyncPromise<TResult1 | TResult2>;
valueOrPromise(): T | PromiseLike<T>;

@@ -4,0 +4,0 @@ }

@@ -8,4 +8,5 @@ /**

const { TextEncoder, TextDecoder } = globalThis;
const SharedEncoder = new TextEncoder();
const SharedDecoder = new TextDecoder();
const SharedEncoder = /* #__PURE__ */ new TextEncoder();
const SharedDecoder = /* #__PURE__ */ new TextDecoder();
/* #__NO_SIDE_EFFECTS__ */
export function encodeUtf8(input) {

@@ -12,0 +13,0 @@ return SharedEncoder.encode(input);

{
"name": "@yume-chan/struct",
"version": "0.0.0-20240714132542",
"version": "0.0.0-next-20240917062356",
"description": "C-style structure serializer and deserializer.",

@@ -31,20 +31,17 @@ "keywords": [

"dependencies": {
"@yume-chan/no-data-view": "0.0.0-20240714132542"
"@yume-chan/no-data-view": "^0.0.0-next-20240917062356"
},
"devDependencies": {
"@jest/globals": "^30.0.0-alpha.4",
"@types/node": "^22.5.5",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"@yume-chan/test-runner": "^1.0.0",
"@yume-chan/eslint-config": "^1.0.0",
"@yume-chan/tsconfig": "^1.0.0",
"cross-env": "^7.0.3",
"jest": "^30.0.0-alpha.4",
"prettier": "^3.3.3",
"ts-jest": "^29.2.2",
"typescript": "^5.5.3"
"@yume-chan/tsconfig": "^1.0.0"
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"build:watch": "tsc -b tsconfig.build.json",
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" TS_JEST_DISABLE_VER_CHECKER=true jest --coverage",
"lint": "run-eslint && prettier src/**/*.ts --write --tab-width 4"
"lint": "run-eslint && prettier src/**/*.ts --write --tab-width 4",
"test": "run-test"
}
}

@@ -0,0 +0,0 @@ # @yume-chan/struct

export interface SyncPromise<T> {
then<TResult1 = T, TResult2 = never>(
onfulfilled?:
| ((value: T) => TResult1 | PromiseLike<TResult1>)
| null
| undefined,
onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onrejected?:
| ((reason: unknown) => TResult2 | PromiseLike<TResult2>)
| null
| undefined,
| null,
): SyncPromise<TResult1 | TResult2>;

@@ -65,10 +61,6 @@

then<TResult1 = T, TResult2 = never>(
onfulfilled?:
| ((value: T) => TResult1 | PromiseLike<TResult1>)
| null
| undefined,
onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onrejected?:
| ((reason: unknown) => TResult2 | PromiseLike<TResult2>)
| null
| undefined,
| null,
) {

@@ -93,6 +85,3 @@ return new PendingSyncPromise<TResult1 | TResult2>(

then<TResult1 = T>(
onfulfilled?:
| ((value: T) => TResult1 | PromiseLike<TResult1>)
| null
| undefined,
onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
) {

@@ -118,7 +107,6 @@ if (!onfulfilled) {

then<TResult1 = T, TResult2 = never>(
_?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined,
_?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onrejected?:
| ((reason: unknown) => TResult2 | PromiseLike<TResult2>)
| null
| undefined,
| null,
) {

@@ -125,0 +113,0 @@ if (!onrejected) {

@@ -64,2 +64,3 @@ /**

// eslint-disable-next-line @typescript-eslint/no-unused-vars
declare class TextEncoderType {

@@ -71,2 +72,3 @@ constructor();

// eslint-disable-next-line @typescript-eslint/no-unused-vars
declare class TextDecoderType {

@@ -85,5 +87,6 @@ constructor();

const SharedEncoder = new TextEncoder();
const SharedDecoder = new TextDecoder();
const SharedEncoder = /* #__PURE__ */ new TextEncoder();
const SharedDecoder = /* #__PURE__ */ new TextDecoder();
/* #__NO_SIDE_EFFECTS__ */
export function encodeUtf8(input: string): Uint8Array {

@@ -90,0 +93,0 @@ return SharedEncoder.encode(input);

{
"extends": "./node_modules/@yume-chan/tsconfig/tsconfig.base.json"
"extends": "./node_modules/@yume-chan/tsconfig/tsconfig.base.json",
"references": [
{
"path": "../no-data-view/tsconfig.build.json"
}
]
}

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