@getlatedev/node
Advanced tools
+33
-0
@@ -329,2 +329,26 @@ "use strict"; | ||
| }; | ||
| var validatePostLength = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/post-length" | ||
| }); | ||
| }; | ||
| var validatePost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/post" | ||
| }); | ||
| }; | ||
| var validateMedia = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/media" | ||
| }); | ||
| }; | ||
| var validateSubreddit = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/tools/validate/subreddit" | ||
| }); | ||
| }; | ||
| var getAnalytics = (options) => { | ||
@@ -1202,2 +1226,11 @@ return (options?.client ?? client).get({ | ||
| /** | ||
| * validate API | ||
| */ | ||
| this.validate = { | ||
| validatePostLength, | ||
| validatePost, | ||
| validateMedia, | ||
| validateSubreddit | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
@@ -1204,0 +1237,0 @@ */ |
+33
-0
@@ -300,2 +300,26 @@ var __defProp = Object.defineProperty; | ||
| }; | ||
| var validatePostLength = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/post-length" | ||
| }); | ||
| }; | ||
| var validatePost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/post" | ||
| }); | ||
| }; | ||
| var validateMedia = (options) => { | ||
| return (options?.client ?? client).post({ | ||
| ...options, | ||
| url: "/v1/tools/validate/media" | ||
| }); | ||
| }; | ||
| var validateSubreddit = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/tools/validate/subreddit" | ||
| }); | ||
| }; | ||
| var getAnalytics = (options) => { | ||
@@ -1173,2 +1197,11 @@ return (options?.client ?? client).get({ | ||
| /** | ||
| * validate API | ||
| */ | ||
| this.validate = { | ||
| validatePostLength, | ||
| validatePost, | ||
| validateMedia, | ||
| validateSubreddit | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
@@ -1175,0 +1208,0 @@ */ |
+1
-1
| { | ||
| "name": "@getlatedev/node", | ||
| "version": "0.1.33", | ||
| "version": "0.1.34", | ||
| "description": "The official Node.js library for the Late API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+8
-0
@@ -398,2 +398,10 @@ <p align="center"> | ||
| ### Validate | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `validate.validateMedia()` | Validate media URL | | ||
| | `validate.validatePost()` | Validate post content | | ||
| | `validate.validatePostLength()` | Validate post character count | | ||
| | `validate.validateSubreddit()` | Check subreddit existence | | ||
| ### Invites | ||
@@ -400,0 +408,0 @@ | Method | Description | |
+14
-0
@@ -137,2 +137,6 @@ import { | ||
| updateWebhookSettings, | ||
| validateMedia, | ||
| validatePost, | ||
| validatePostLength, | ||
| validateSubreddit, | ||
| } from './generated/sdk.gen'; | ||
@@ -218,2 +222,12 @@ | ||
| /** | ||
| * validate API | ||
| */ | ||
| validate = { | ||
| validatePostLength: validatePostLength, | ||
| validatePost: validatePost, | ||
| validateMedia: validateMedia, | ||
| validateSubreddit: validateSubreddit, | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
@@ -220,0 +234,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
784037
2.32%17680
2.46%425
1.92%