Compare commits

...

4 Commits

Author SHA1 Message Date
LukeHagar
18c735a920 Bump version to 0.0.22 2023-04-19 15:29:30 +00:00
GitHub Action Bot
331618b77a Automated build '' typescript-axios sdk: 4745116974 2023-04-19 15:28:00 +00:00
Luke Hagar
5f601ecf65 Update configuration.mustache 2023-04-19 10:27:12 -05:00
Luke Hagar
8eeef06c9c adjusting header defaults 2023-04-19 10:26:41 -05:00
8 changed files with 35 additions and 35 deletions

View File

@@ -5,7 +5,7 @@ files:
destinationFilename: package.json
npmName: plexjs
npmRepository: lukehagar
npmVersion: 0.0.21
npmVersion: 0.0.22
useSingleRequestParameter: true
sortParamsByRequiredFlag: true
gitUserID: lukehagar

View File

@@ -12,8 +12,8 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@lukehagar/plexjs": "^0.0.20",
"@types/jest": "^29.5.0",
"@lukehagar/plexjs": "^0.0.21",
"@types/jest": "^29.5.1",
"@types/node": "^18.6.1",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",

View File

@@ -592,10 +592,10 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"
"@lukehagar/plexjs@^0.0.20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@lukehagar/plexjs/-/plexjs-0.0.20.tgz#ecc58f484ce28d5115af1a9a33d79a97a114e2a9"
integrity sha512-AMUTfqgWVDNmVi6u1bEbLrfh9a6Oish3Gt70ehToAtu+HRlGE8jdyqIjbDm0fau0sYSRfjLywUdFyTeooOjnnQ==
"@lukehagar/plexjs@^0.0.21":
version "0.0.21"
resolved "https://registry.yarnpkg.com/@lukehagar/plexjs/-/plexjs-0.0.21.tgz#2769644c615e8c38a5d7a451d268f87cb4c9d949"
integrity sha512-+mYw+/wlR7zXGGpO1M8NwCqTxXkWobQskoAkaNrNIBbQ1pbBngxI8qPplh+n5sY8ctAL6YHEDQWdU5iutVwl6w==
dependencies:
axios "^0.26.1"
axios-retry "^3.4.0"
@@ -798,10 +798,10 @@
jest-diff "^26.0.0"
pretty-format "^26.0.0"
"@types/jest@^29.5.0":
version "29.5.0"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.0.tgz#337b90bbcfe42158f39c2fb5619ad044bbb518ac"
integrity sha512-3Emr5VOl/aoBwnWcH/EFQvlSAmjV+XtV9GGu5mwdYew5vhQh0IUZx/60x0TzHDu09Bi7HMx10t/namdJw5QIcg==
"@types/jest@^29.5.1":
version "29.5.1"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.1.tgz#83c818aa9a87da27d6da85d3378e5a34d2f31a47"
integrity sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==
dependencies:
expect "^29.0.0"
pretty-format "^29.0.0"
@@ -1636,9 +1636,9 @@ dotenv@^16.0.3:
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==
electron-to-chromium@^1.4.284:
version "1.4.367"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.367.tgz#d9ddc529ba2315fc852b722c359e4a40e86aa742"
integrity sha512-mNuDxb+HpLhPGUKrg0hSxbTjHWw8EziwkwlJNkFUj3W60ypigLDRVz04vU+VRsJPi8Gub+FDhYUpuTm9xiEwRQ==
version "1.4.368"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.368.tgz#75901f97d3e23da2e66feb1e61fbb8e70ac96430"
integrity sha512-e2aeCAixCj9M7nJxdB/wDjO6mbYX+lJJxSJCXDzlr5YPGYVofuJwGN9nKg2o6wWInjX6XmxRinn3AeJMK81ltw==
emittery@^0.7.1:
version "0.7.2"

View File

@@ -1,4 +1,4 @@
## plexjs@0.0.21
## plexjs@0.0.22
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_
```
npm install plexjs@0.0.21 --save
npm install plexjs@0.0.22 --save
```
_unPublished (not recommended):_

View File

@@ -132,14 +132,14 @@ export class Configuration {
retriesConfig?: IAxiosRetryConfig
constructor(param: ConfigurationParameters = {}) {
this.plexToken = param.plexToken;
this.clientIdentifier = param.clientIdentifier || "Plexjs";
this.device = param.device;
this.deviceName = param.deviceName;
this.platform = param.platform || "Plexjs";
this.platformVersion = param.platformVersion;
this.product = param.product;
this.version = param.version;
this.plexToken = param.plexToken || "";
this.clientIdentifier = param.clientIdentifier || "plexjs";
this.device = param.device || "plexjs";
this.deviceName = param.deviceName || "plexjs";
this.platform = param.platform || "plexjs";
this.platformVersion = param.platformVersion || "0.0.22";
this.product = param.product || "plexjs";
this.version = param.version || "0.0.22";
this.apiKey = (header: string) => {
switch (header) {

View File

@@ -1,12 +1,12 @@
{
"name": "@lukehagar/plexjs",
"version": "0.0.21",
"version": "0.0.22",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lukehagar/plexjs",
"version": "0.0.21",
"version": "0.0.22",
"license": "MIT",
"dependencies": {
"axios": "^0.26.1",

View File

@@ -1,6 +1,6 @@
{
"name": "@lukehagar/plexjs",
"version": "0.0.21",
"version": "0.0.22",
"description": "Community Made Plex JS/TS Module",
"author": "Luke Hagar",
"repository": {

View File

@@ -121,14 +121,14 @@ export class Configuration {
retriesConfig?: IAxiosRetryConfig
constructor(param: ConfigurationParameters = {}) {
this.plexToken = param.plexToken;
this.clientIdentifier = param.clientIdentifier || "Plexjs";
this.device = param.device;
this.deviceName = param.deviceName;
this.platform = param.platform || "Plexjs";
this.platformVersion = param.platformVersion;
this.product = param.product;
this.version = param.version;
this.plexToken = param.plexToken || "";
this.clientIdentifier = param.clientIdentifier || "{{npmName}}";
this.device = param.device || "{{npmName}}";
this.deviceName = param.deviceName || "{{npmName}}";
this.platform = param.platform || "{{npmName}}";
this.platformVersion = param.platformVersion || "{{npmVersion}}";
this.product = param.product || "{{npmName}}";
this.version = param.version || "{{npmVersion}}";
this.apiKey = (header: string) => {
switch (header) {