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

@atproto/api

Package Overview
Dependencies
Maintainers
4
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/api - npm Package Compare versions

Comparing version 0.12.25 to 0.12.26-next.0

dist/client/types/app/bsky/embed/defs.d.ts

13

dist/client/types/app/bsky/embed/images.d.ts

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

import { ValidationResult, BlobRef } from '@atproto/lexicon';
import * as AppBskyEmbedDefs from './defs';
export interface Main {

@@ -16,3 +17,3 @@ images: Image[];

alt: string;
aspectRatio?: AspectRatio;
aspectRatio?: AppBskyEmbedDefs.AspectRatio;
[k: string]: unknown;

@@ -22,10 +23,2 @@ }

export declare function validateImage(v: unknown): ValidationResult;
/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
export interface AspectRatio {
width: number;
height: number;
[k: string]: unknown;
}
export declare function isAspectRatio(v: unknown): v is AspectRatio;
export declare function validateAspectRatio(v: unknown): ValidationResult;
export interface View {

@@ -44,3 +37,3 @@ images: ViewImage[];

alt: string;
aspectRatio?: AspectRatio;
aspectRatio?: AppBskyEmbedDefs.AspectRatio;
[k: string]: unknown;

@@ -47,0 +40,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateViewImage = exports.isViewImage = exports.validateView = exports.isView = exports.validateAspectRatio = exports.isAspectRatio = exports.validateImage = exports.isImage = exports.validateMain = exports.isMain = void 0;
exports.validateViewImage = exports.isViewImage = exports.validateView = exports.isView = exports.validateImage = exports.isImage = exports.validateMain = exports.isMain = void 0;
const util_1 = require("../../../../util");

@@ -25,12 +25,2 @@ const lexicons_1 = require("../../../../lexicons");

exports.validateImage = validateImage;
function isAspectRatio(v) {
return ((0, util_1.isObj)(v) &&
(0, util_1.hasProp)(v, '$type') &&
v.$type === 'app.bsky.embed.images#aspectRatio');
}
exports.isAspectRatio = isAspectRatio;
function validateAspectRatio(v) {
return lexicons_1.lexicons.validate('app.bsky.embed.images#aspectRatio', v);
}
exports.validateAspectRatio = validateAspectRatio;
function isView(v) {

@@ -37,0 +27,0 @@ return ((0, util_1.isObj)(v) && (0, util_1.hasProp)(v, '$type') && v.$type === 'app.bsky.embed.images#view');

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

import * as AppBskyEmbedImages from './images';
import * as AppBskyEmbedVideo from './video';
import * as AppBskyEmbedExternal from './external';

@@ -40,3 +41,3 @@ import * as AppBskyEmbedRecordWithMedia from './recordWithMedia';

likeCount?: number;
embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
embeds?: (AppBskyEmbedImages.View | AppBskyEmbedVideo.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
$type: string;

@@ -43,0 +44,0 @@ [k: string]: unknown;

@@ -7,6 +7,7 @@ /**

import * as AppBskyEmbedImages from './images';
import * as AppBskyEmbedVideo from './video';
import * as AppBskyEmbedExternal from './external';
export interface Main {
record: AppBskyEmbedRecord.Main;
media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
media: AppBskyEmbedImages.Main | AppBskyEmbedVideo.Main | AppBskyEmbedExternal.Main | {
$type: string;

@@ -21,3 +22,3 @@ [k: string]: unknown;

record: AppBskyEmbedRecord.View;
media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
media: AppBskyEmbedImages.View | AppBskyEmbedVideo.View | AppBskyEmbedExternal.View | {
$type: string;

@@ -24,0 +25,0 @@ [k: string]: unknown;

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

import * as AppBskyEmbedImages from '../embed/images';
import * as AppBskyEmbedVideo from '../embed/video';
import * as AppBskyEmbedExternal from '../embed/external';

@@ -19,3 +20,3 @@ import * as AppBskyEmbedRecord from '../embed/record';

record: {};
embed?: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | {
embed?: AppBskyEmbedImages.View | AppBskyEmbedVideo.View | AppBskyEmbedExternal.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | {
$type: string;

@@ -22,0 +23,0 @@ [k: string]: unknown;

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

import * as AppBskyEmbedImages from '../embed/images';
import * as AppBskyEmbedVideo from '../embed/video';
import * as AppBskyEmbedExternal from '../embed/external';

@@ -21,3 +22,3 @@ import * as AppBskyEmbedRecord from '../embed/record';

reply?: ReplyRef;
embed?: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | AppBskyEmbedRecord.Main | AppBskyEmbedRecordWithMedia.Main | {
embed?: AppBskyEmbedImages.Main | AppBskyEmbedVideo.Main | AppBskyEmbedExternal.Main | AppBskyEmbedRecord.Main | AppBskyEmbedRecordWithMedia.Main | {
$type: string;

@@ -24,0 +25,0 @@ [k: string]: unknown;

{
"name": "@atproto/api",
"version": "0.12.25",
"version": "0.12.26-next.0",
"license": "MIT",

@@ -24,5 +24,5 @@ "description": "Client library for atproto and Bluesky",

"@atproto/common-web": "^0.3.0",
"@atproto/xrpc": "^0.5.0",
"@atproto/lexicon": "^0.4.0",
"@atproto/syntax": "^0.3.0",
"@atproto/xrpc": "^0.5.0"
"@atproto/syntax": "^0.3.0"
},

@@ -29,0 +29,0 @@ "devDependencies": {

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

import { CID } from 'multiformats/cid'
import * as AppBskyEmbedDefs from './defs'

@@ -32,3 +33,3 @@ export interface Main {

alt: string
aspectRatio?: AspectRatio
aspectRatio?: AppBskyEmbedDefs.AspectRatio
[k: string]: unknown

@@ -47,21 +48,2 @@ }

/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
export interface AspectRatio {
width: number
height: number
[k: string]: unknown
}
export function isAspectRatio(v: unknown): v is AspectRatio {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.images#aspectRatio'
)
}
export function validateAspectRatio(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.images#aspectRatio', v)
}
export interface View {

@@ -89,3 +71,3 @@ images: ViewImage[]

alt: string
aspectRatio?: AspectRatio
aspectRatio?: AppBskyEmbedDefs.AspectRatio
[k: string]: unknown

@@ -92,0 +74,0 @@ }

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

import * as AppBskyEmbedImages from './images'
import * as AppBskyEmbedVideo from './video'
import * as AppBskyEmbedExternal from './external'

@@ -72,2 +73,3 @@ import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'

| AppBskyEmbedImages.View
| AppBskyEmbedVideo.View
| AppBskyEmbedExternal.View

@@ -74,0 +76,0 @@ | View

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

import * as AppBskyEmbedImages from './images'
import * as AppBskyEmbedVideo from './video'
import * as AppBskyEmbedExternal from './external'

@@ -17,2 +18,3 @@

| AppBskyEmbedImages.Main
| AppBskyEmbedVideo.Main
| AppBskyEmbedExternal.Main

@@ -40,2 +42,3 @@ | { $type: string; [k: string]: unknown }

| AppBskyEmbedImages.View
| AppBskyEmbedVideo.View
| AppBskyEmbedExternal.View

@@ -42,0 +45,0 @@ | { $type: string; [k: string]: unknown }

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

import * as AppBskyEmbedImages from '../embed/images'
import * as AppBskyEmbedVideo from '../embed/video'
import * as AppBskyEmbedExternal from '../embed/external'

@@ -25,2 +26,3 @@ import * as AppBskyEmbedRecord from '../embed/record'

| AppBskyEmbedImages.View
| AppBskyEmbedVideo.View
| AppBskyEmbedExternal.View

@@ -27,0 +29,0 @@ | AppBskyEmbedRecord.View

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

import * as AppBskyEmbedImages from '../embed/images'
import * as AppBskyEmbedVideo from '../embed/video'
import * as AppBskyEmbedExternal from '../embed/external'

@@ -27,2 +28,3 @@ import * as AppBskyEmbedRecord from '../embed/record'

| AppBskyEmbedImages.Main
| AppBskyEmbedVideo.Main
| AppBskyEmbedExternal.Main

@@ -29,0 +31,0 @@ | AppBskyEmbedRecord.Main

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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 too big to display

Sorry, the diff of this file is too big to display

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