Socket
Socket
Sign inDemoInstall

@cpany/app

Package Overview
Dependencies
208
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.10 to 0.1.11

dist/assets/About.16554032.js

6

package.json
{
"name": "@cpany/app",
"version": "0.1.10",
"version": "0.1.11",
"description": "CPany web app",

@@ -16,4 +16,4 @@ "keywords": [

"dependencies": {
"@cpany/compress": "0.1.10",
"@cpany/types": "0.1.10",
"@cpany/compress": "0.1.11",
"@cpany/types": "0.1.11",
"tippy.js": "^6.3.1",

@@ -20,0 +20,0 @@ "vue": "^3.2.12",

@@ -67,2 +67,10 @@ import { createRouter, createWebHistory } from 'vue-router';

{
path: '/history',
name: 'History',
component: () => import('./pages/History/index.vue'),
meta: {
title: '历史 - CPany'
}
},
{
path: '/about',

@@ -69,0 +77,0 @@ name: 'About',

@@ -22,1 +22,7 @@ declare module '*.vue' {

}
declare module '~cpany/log' {
import { DiffLog } from '@cpany/types';
const history: DiffLog;
}

@@ -51,2 +51,10 @@ import { Ref, ref, unref } from 'vue';

export function toDay(seconds: number | Ref<number>) {
const utc = toUTC(new Date(unref(seconds) * 1000));
const date = utcToZonedTime(utc, 'Asia/Shanghai');
return ref(
`${date.getFullYear()}-${alignNumber(date.getMonth() + 1)}-${alignNumber(date.getDate())} `
);
}
export function toNumDuration(duration: number | Ref<number>) {

@@ -53,0 +61,0 @@ const seconds = unref(duration);

@@ -20,2 +20,12 @@ import { resolve } from 'path';

}
},
{
name: 'cpany:log',
enforce: 'pre',
resolveId(id) {
return id === '~cpany/log' ? '~cpany/log.json' : null;
},
load(id) {
return id === '~cpany/log.json' ? '{ "history": {} }' : null;
}
}

@@ -22,0 +32,0 @@ ];

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc