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

@lokalise/node-api

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lokalise/node-api - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

0

.eslintrc.js

@@ -0,0 +0,0 @@ module.exports = {

1

dist/interfaces/project_settings.d.ts
export interface ProjectSettings {
per_platform_key_names: boolean;
reviewing: boolean;
upvoting: boolean;
auto_toggle_unverified: boolean;

@@ -6,0 +5,0 @@ offline_translation: boolean;

module.exports = require("./dist/main");

2

package.json
{
"name": "@lokalise/node-api",
"version": "8.1.0",
"version": "8.2.0",
"description": "Official Lokalise API 2.0 Node.js client",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -0,0 +0,0 @@ import { Options } from "got";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { Branches } from "./branches";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { Language } from "../models/language";

@@ -0,0 +0,0 @@ import { Order } from "../models/order";

@@ -0,0 +0,0 @@ import { PaymentCard } from "../models/payment_card";

@@ -0,0 +0,0 @@ import { Project } from "../models/project";

@@ -0,0 +0,0 @@ import { QueuedProcess } from "../models/queued_process";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { Segment } from "../models/segment";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { TeamUserBillingDetails as BillingDetailsModel } from "../models/team_user_billing_details";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection";

@@ -0,0 +0,0 @@ import { Response, Options } from "got";

@@ -0,0 +0,0 @@ import { LanguageMapping } from "./language_mapping";

@@ -0,0 +0,0 @@ export { ApiError } from "../interfaces/api_error";

@@ -0,0 +0,0 @@ import { ProjectWithPagination } from "./project_with_pagination";

@@ -0,0 +0,0 @@ import { Filenames } from "../types/filenames";

@@ -0,0 +0,0 @@ import { Keyable } from "./keyable";

export interface ProjectSettings {
per_platform_key_names: boolean;
reviewing: boolean;
upvoting: boolean;
auto_toggle_unverified: boolean;

@@ -6,0 +5,0 @@ offline_translation: boolean;

@@ -0,0 +0,0 @@ import { ProjectOnly } from "./project_only";

@@ -0,0 +0,0 @@ import { ProjectSettings } from "./project_settings";

@@ -0,0 +0,0 @@ import { Keyable } from "./keyable";

@@ -0,0 +0,0 @@ import { TranslationStatus } from "./translation_status";

@@ -0,0 +0,0 @@ import { TeamOnly } from "./team_only";

@@ -0,0 +0,0 @@ import { TranslationStatus } from "./translation_status";

@@ -0,0 +0,0 @@ import { LokaliseApi, ClientParams } from "./lokalise_api";

@@ -0,0 +0,0 @@ import { Branches } from "../collections/branches";

@@ -0,0 +0,0 @@ import { LokaliseApi } from "./lokalise/lokalise_api";

@@ -0,0 +0,0 @@ import { ApiError as ErrorInterface } from "../interfaces/api_error";

@@ -0,0 +0,0 @@ import { AuthError as ErrorInterface } from "../interfaces/auth_error";

@@ -0,0 +0,0 @@ import { Branch as BranchInterface } from "../interfaces/branch";

@@ -0,0 +0,0 @@ import { Comment as CommentInterface } from "../interfaces/comment";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { Key as KeyInterface } from "../interfaces/key";

@@ -0,0 +0,0 @@ import { Language as LanguageInterface } from "../interfaces/language";

@@ -0,0 +0,0 @@ import { Order as OrderInterface } from "../interfaces/order";

@@ -0,0 +0,0 @@ import { PaginatedResult as PaginatedResultInterface } from "../interfaces/paginated_result";

@@ -0,0 +0,0 @@ import { PaymentCard as PaymentCardInterface } from "../interfaces/payment_card";

@@ -0,0 +0,0 @@ import { Project as ProjectInterface } from "../interfaces/project";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { RefreshTokenResponse as RefreshTokenResponseInterface } from "../interfaces/refresh_token_response";

@@ -0,0 +0,0 @@ import { RequestTokenResponse as RequestTokenResponseInterface } from "../interfaces/request_token_response";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model";

@@ -0,0 +0,0 @@ import { Response, Options } from "got";

@@ -0,0 +0,0 @@ import { AuthData as AuthDataInterface } from "../interfaces/auth_data";

@@ -0,0 +0,0 @@ import { SupportedPlatforms } from "../types/supported_platforms";

@@ -0,0 +0,0 @@ import { Keyable } from "../interfaces/keyable";

@@ -0,0 +0,0 @@ import { CreateKeyData } from "./create_key_data";

@@ -0,0 +0,0 @@ import { ApiError } from "../../src/main";

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -9,3 +9,3 @@ require("../setup");

const lokaliseApi = new LokaliseApi({ apiKey: process.env.API_KEY });
const project_id = "803826145ba90b42d5d860.46800099";
const project_id = "9367803563515cbe23fa19.58441884";
const new_project_id = "580641925d0a726ead2fd7.11048498";

@@ -16,3 +16,3 @@

const projects = await lokaliseApi.projects().list();
expect(projects.items[0].name).to.eq("contrib");
expect(projects.items[0].name).to.eq("Angular");
})

@@ -24,5 +24,5 @@ .register(this);

const projects = await lokaliseApi.projects().list({ page: 3, limit: 2 });
expect(projects.items[0].name).to.eq("demo phoenix copy");
expect(projects.totalResults).to.eq(13);
expect(projects.totalPages).to.eq(7);
expect(projects.items[0].name).to.eq("Blog");
expect(projects.totalResults).to.eq(45);
expect(projects.totalPages).to.eq(23);
expect(projects.resultsPerPage).to.eq(2);

@@ -40,3 +40,3 @@ expect(projects.currentPage).to.eq(3);

expect(project.project_id).to.equal(new_project_id);
expect(project.project_id).to.equal(project_id);
expect(project.name).to.equal("Node.js test");

@@ -53,6 +53,6 @@ expect(project.description).to.equal("Test description");

expect(project.project_type).to.equal("localization_files");
expect(project.name).to.equal("demo phoenix");
expect(project.description).to.equal("");
expect(project.created_at).to.equal("2018-09-24 16:05:22 (Etc/UTC)");
expect(project.created_at_timestamp).to.equal(1537805122);
expect(project.name).to.equal("Node.js test");
expect(project.description).to.equal("Test description");
expect(project.created_at).to.equal("2022-10-20 14:35:42 (Etc/UTC)");
expect(project.created_at_timestamp).to.equal(1666276542);
expect(project.created_by).to.equal(20181);

@@ -64,3 +64,3 @@ expect(project.created_by_email).to.equal("bodrovis@protonmail.com");

expect(project.settings.per_platform_key_names).to.be.false;
expect(project.statistics.progress_total).to.equal(17);
expect(project.statistics.team).to.equal(2);
})

@@ -72,9 +72,9 @@ .register(this);

const project = await lokaliseApi.projects().update(project_id, {
name: "Demo Phoenix",
description: "Description Phoenix",
name: "Node updated",
description: "SDK update",
});
expect(project.project_id).to.equal(project_id);
expect(project.name).to.equal("Demo Phoenix");
expect(project.description).to.equal("Description Phoenix");
expect(project.name).to.equal("Node updated");
expect(project.description).to.equal("SDK update");
})

@@ -81,0 +81,0 @@ .register(this);

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

require("dotenv").config();

@@ -46,8 +46,8 @@ require("../setup");

.createTest("restore", async () => {
const response = await lokaliseApi.snapshots().restore(new_snapshot_id, {
project_id: project_id,
const response = await lokaliseApi.snapshots().restore(1570469, {
project_id: "9367803563515cbe23fa19.58441884",
});
expect(response.project_id).to.eq("531138705d0ba0c18f5b43.63503311");
expect(response.name).to.eq("Demo Phoenix copy");
expect(response.project_id).not.to.eq("9367803563515cbe23fa19.58441884");
expect(response.name).to.eq("Node updated copy");
})

@@ -54,0 +54,0 @@ .register(this);

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

@@ -0,0 +0,0 @@ require("../setup");

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