Compare commits

..

No commits in common. "cbe86a773a106bf97a77aae4311bfd9fa67837a6" and "ac1a495140ec97e5b4178faf3bfac2f23112583f" have entirely different histories.

7 changed files with 13 additions and 6247 deletions

1
.npmrc
View File

@ -1 +0,0 @@
legacy-peer-deps=true

View File

@ -1,11 +0,0 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];

View File

@ -1,12 +0,0 @@
// jest.config.ts
import { createDefaultPreset, type JestConfigWithTsJest } from 'ts-jest';
const jestConfig: JestConfigWithTsJest = {
testEnvironment: "node",
preset: 'ts-jest/presets/js-with-ts-esm',
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
};
export default jestConfig;

6196
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,12 @@
{
"name": "paapi5-nodejs-sdk",
"version": "2.1.0",
"version": "1.1.0",
"description": "ProductAdvertisingAPI 5.0 NodeJS SDK",
"license": "Apache-2.0",
"main": "dist/index.ts",
"main": "src/index.js",
"scripts": {
"clean": "rimraf dist",
"build": "tsc",
"test": "jest",
"lint": "eslint src/**/*",
"watch:build": "tsc --watch",
"watch:test": "jest --watch",
"start": "npm-run-all clean --parallel watch:build --print-label"
"test": "./node_modules/mocha/bin/mocha --recursive",
"lint": "eslint sampleGetBrowseNodesApi.js sampleGetItemsApi.js sampleSearchItemsApi.js sampleGetVariationsApi.js src/auth/*.js"
},
"author": {
"name": "Product Advertising API",
@ -23,24 +18,18 @@
"type": "git",
"url": "https://github.com/amzn/paapi5-nodejs-sdk"
},
"browser": {
"fs": false
},
"dependencies": {
"crypto-js": "^4.2.0",
"superagent": "^9.0.0"
"superagent": "3.7.0",
"crypto-js": "^3.1.9-1"
},
"devDependencies": {
"@eslint/js": "^9.7.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.12",
"eslint": "^9.7.0",
"eslint": "^5.8.0",
"expect.js": "~0.3.1",
"globals": "^15.8.0",
"jest": "^29.7.0",
"rimraf": "^6.0.1",
"sinon": "^18.0.0",
"ts-jest": "^29.2.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.1"
"mocha": "^10.0.0",
"sinon": "1.17.3"
},
"keywords": [
"amazon",

View File

@ -1,6 +1,4 @@
/**
* Converted from mocha to vitest and refactored to TypeScript by David A. Ball. (c) 2024.
*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").

View File

@ -10,7 +10,6 @@
},
"include": [
"src/**/*",
"tests/**/*",
"examples/**/*",
"tests/**/*"
]
}