Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-theme-shokax

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-theme-shokax - npm Package Compare versions

Comparing version 0.3.13 to 0.4.0-alpha.1

scripts/filters/locals.d.ts

8

package.json
{
"name": "hexo-theme-shokax",
"version": "0.3.13",
"version": "0.4.0-alpha.1",
"description": "a hexo theme based on shoka",

@@ -12,3 +12,3 @@ "main": "index.js",

"test": "tsc --build --verbose",
"build": "cd ./source && tsc --build --verbose && cd ../scripts && tsc --build --verbose"
"build": "cd ./scripts && tsc --build --verbose"
},

@@ -20,4 +20,4 @@ "devDependencies": {

"@types/node": "^20.11.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",

@@ -24,0 +24,0 @@ "eslint-config-standard": "~17",

@@ -70,4 +70,2 @@ "use strict";

playerAPI: theme.playerAPI,
disableVL: theme.disableVL,
noPlayer: theme.experiments?.noPlayer,
audio: undefined,

@@ -91,7 +89,7 @@ fireworks: (theme.fireworks && theme.fireworks.enable && theme.fireworks.options)

let enterPoint;
if (fs.existsSync('themes/shokaX/source/js/_app/pjax/siteInit.js')) {
enterPoint = 'themes/shokaX/source/js/_app/pjax/siteInit.js';
if (fs.existsSync('themes/shokaX/source/js/_app/pjax/siteInit.ts')) {
enterPoint = 'themes/shokaX/source/js/_app/pjax/siteInit.ts';
}
else {
enterPoint = 'node_modules/hexo-theme-shokax/source/js/_app/pjax/siteInit.js';
enterPoint = 'node_modules/hexo-theme-shokax/source/js/_app/pjax/siteInit.ts';
}

@@ -103,2 +101,11 @@ text = 'const CONFIG = ' + JSON.stringify(siteConfig) + ';';

outfile: 'shokax_temp.js',
tsconfigRaw: {
compilerOptions: {
target: 'ES2022',
esModuleInterop: true,
module: 'ESNext',
moduleResolution: 'Node',
skipLibCheck: true
}
},
platform: 'browser',

@@ -109,3 +116,12 @@ format: 'iife',

define: {
__UNLAZY_LOGGING__: 'false'
__UNLAZY_LOGGING__: 'false',
__UNLAZY_HASH_DECODING__: theme.modules.unlazyHash ? 'true' : 'false',
__shokax_player__: theme.modules.player ? 'true' : 'false',
__shokax_VL__: theme.modules.visibilityListener ? 'true' : 'false',
__shokax_fireworks__: (theme.fireworks && theme.fireworks.enable && theme.fireworks.options && theme.modules.fireworks) ? 'true' : 'false',
__shokax_search__: config?.algolia ? 'true' : 'false',
__shokax_outime__: theme.outime.enable ? 'true' : 'false',
__shokax_tabs__: theme.modules.tabs ? 'true' : 'false',
__shokax_quiz__: theme.modules.quiz ? 'true' : 'false',
__shokax_fancybox__: theme.modules.fancybox ? 'true' : 'false'
}

@@ -112,0 +128,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc