Comparing version 2.0.7-beta3 to 2.0.7
@@ -2550,3 +2550,3 @@ import * as Commander from 'commander'; | ||
var name = "pake-cli"; | ||
var version = "2.0.7-beta3"; | ||
var version = "2.0.7"; | ||
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。"; | ||
@@ -2553,0 +2553,0 @@ var engines = { |
{ | ||
"name": "pake-cli", | ||
"version": "2.0.7-beta3", | ||
"version": "2.0.7", | ||
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -149,2 +149,34 @@ document.addEventListener('DOMContentLoaded', () => { | ||
window.pakeToast = pakeToast; | ||
// chatgpt supports unlimited times of GPT4-Mobile | ||
if (window.location.hostname === 'chat.openai.com') { | ||
const originFetch = fetch; | ||
window.fetch = (url, options) => { | ||
return originFetch(url, options).then(async (response) => { | ||
if (url.indexOf('/backend-api/models') === -1) { | ||
return response; | ||
} | ||
const responseClone = response.clone(); | ||
let res = await responseClone.json(); | ||
res.models = res.models.map((m) => { | ||
m.tags = m.tags.filter((t) => { | ||
return t !== 'mobile'; | ||
}); | ||
if (m.slug === 'gpt-4-mobile') { | ||
res.categories.push({ | ||
browsing_model: null, | ||
category: 'gpt_4', | ||
code_interpreter_model: null, | ||
default_model: 'gpt-4-mobile', | ||
human_category_name: 'GPT-4-Mobile', | ||
plugins_model: null, | ||
subscription_level: 'plus', | ||
}); | ||
} | ||
return m; | ||
}); | ||
return new Response(JSON.stringify(res), response); | ||
}); | ||
}; | ||
} | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11719746
3532
1
3