New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

siyuan_api_cache_lib

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siyuan_api_cache_lib - npm Package Compare versions

Comparing version

to
1.0.4

7

dist/util/env.js
export function getCurrentEnv() {
try {
self.parent?.document;
}
catch (e) {
// 处于非同源 iframe,无法探知当前环境
return getCurrentEnv.env.unknown;
}
if (querySelector(`main[data-n-id]`)) {

@@ -3,0 +10,0 @@ return getCurrentEnv.env.oceanPress;

2

package.json
{
"name": "siyuan_api_cache_lib",
"version": "1.0.3",
"version": "1.0.4",
"description": "为思源挂件块提供 api 访问的工具库,同时具有缓存 api 调用结果到块属性上以及在非思源笔记环境下使用缓存结果的功能",

@@ -5,0 +5,0 @@ "main": "dist/index.js",