* Do not target oldest browsers; stop using node-fetch

* Update yarn.lock
This commit is contained in:
49fl
2024-08-14 16:08:07 -04:00
committed by GitHub
parent faff488bb6
commit 21e666eb50
132 changed files with 1457 additions and 1835 deletions

View File

@ -1 +1,9 @@
export default { presets: ['@babel/preset-env'] };
export default {
presets: ['@babel/preset-env'],
targets: {
// Try to match node with electron versions.
// See: https://www.electronjs.org/docs/latest/tutorial/electron-timelines
node: 'v20.9.0',
electron: '29.0.0',
}
};

View File

@ -1,6 +1,6 @@
{
"name": "@kittycad/lib",
"version": "0.0.76",
"version": "1.0.63",
"description": "Javascript library for KittyCAD API",
"type": "module",
"keywords": [
@ -20,13 +20,11 @@
"url": "git+https://github.com/KittyCAD/kittycad.ts.git"
},
"exports": {
".": {
"types": "./dist/types/src/index.d.ts",
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
}
"types": "./dist/types/src/index.d.ts",
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.cjs"
},
"main": "./dist/cjs/index.js",
"main": "./dist/cjs/index.cjs",
"module": "./dist/mjs/index.js",
"browser": "./dist/umd/index.js",
"types": "./dist/types/src",
@ -74,7 +72,6 @@
"author": "Kurt Hutten <kurt@kittycad.io>",
"license": "MIT",
"dependencies": {
"node-fetch": "3.3.2",
"openapi-types": "^12.0.0",
"ts-node": "^10.9.1",
"tslib": "~2.4"

View File

@ -30,7 +30,7 @@ export default [
format: 'esm',
},
{
file: pkg.main,
file: pkg.main.replace('.js', '.cjs'),
format: 'cjs',
},
{

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiCallWithPrice_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiCallWithPrice_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiCallWithPrice_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiCallQueryGroup_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { AsyncApiCallOutput_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiCallWithPriceResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiCallWithPriceResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
AsyncApiCallResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiCallWithPriceResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiCallWithPriceResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiToken_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiToken_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ApiTokenResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { AppClientInfo_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {} from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
CodeOutput_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileCenterOfMass_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileConversion_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileDensity_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileMass_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileSurfaceArea_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
FileVolume_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { IpAddrInfo_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Metadata_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ZooProductSubscription_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ApiToken_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Pong_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
KclCodeCompletionResponse_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
TextToCad_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type, AiFeedback_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { AiPrompt_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { TextToCad_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
AiPromptResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
TextToCadResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {} from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type, DeviceAuthVerifyParams_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {} from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type, AccountProvider_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type, AccountProvider_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
OAuth2ClientInfo_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Org_type, Error_type, OrgDetails_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { OrgMember_type, Error_type, AddOrgMember_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
SamlIdentityProvider_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type, Uuid_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Org_type, Error_type, Uuid_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Org_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { OrgMember_type, Error_type, Uuid_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PrivacySettings_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { SamlIdentityProvider_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { UserOrgInfo_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
OrgMemberResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
OrgResultsPage_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ZooProductSubscriptions_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Org_type, Error_type, OrgDetails_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
OrgMember_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PrivacySettings_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
SamlIdentityProvider_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ZooProductSubscriptions_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type, BillingInfo_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type, BillingInfo_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PaymentIntent_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PaymentIntent_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ZooProductSubscriptions_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ZooProductSubscriptions_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { CustomerBalance_type, Error_type, Uuid_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { CustomerBalance_type, Error_type, Uuid_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { CustomerBalance_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { CustomerBalance_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ZooProductSubscriptions_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Invoice_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Invoice_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PaymentMethod_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { PaymentMethod_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ZooProductSubscriptions_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
CustomerBalance_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
CustomerBalance_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type, BillingInfo_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Customer_type, Error_type, BillingInfo_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import {
ZooProductSubscriptions_type,
Error_type,

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { Error_type } from '../../models.js';
import { Client } from '../../client.js';

View File

@ -1,4 +1,3 @@
import fetch from 'node-fetch';
import { ServiceAccount_type, Error_type } from '../../models.js';
import { Client } from '../../client.js';

Some files were not shown because too many files have changed in this diff Show More