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

@svelte-plugins/datepicker

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svelte-plugins/datepicker - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/index.js

55

package.json
{
"name": "@svelte-plugins/datepicker",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",

@@ -9,4 +9,5 @@ "description": "A simple datepicker component designed for Svelte.",

"types": "./src/index.d.ts",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"type": "module",
"sideEffects": false,

@@ -22,10 +23,10 @@ "repository": {

"rangepicker",
"daterange picker",
"actions",
"action",
"daterange",
"timepicker",
"calendar",
"svelte",
"svelte component"
"components",
"javascript"
],
"files": [
"/lib",
"/src",

@@ -35,8 +36,8 @@ "/dist"

"scripts": {
"dev": "rollup -cw",
"bundle": "rollup -c",
"dev": "vite",
"bundle": "vite build",
"deploy": "npx gh-pages -d docs/build",
"lint": "eslint --fix \"src/**/*.{.js,svelte}\"",
"format": "prettier --write \"src/**/*.{js,json,svelte}\"",
"test": "jest --coverage"
"test": "vitest --run --coverage"
},

@@ -48,30 +49,18 @@ "devDependencies": {

"@babel/runtime": "^7.13.7",
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/svelte": "^3.0.3",
"babel-jest": "^26.6.3",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/svelte": "^4.0.5",
"@vitest/coverage-v8": "^0.34.6",
"babel-loader": "^8.2.2",
"calendarize": "^1.1.1",
"eslint": "^7.23.0",
"eslint-plugin-jest": "^24.3.2",
"eslint-plugin-svelte3": "^3.1.2",
"figlet": "^1.2.4",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-transform-svelte": "^2.1.1",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.1.6",
"rollup": "^2.39.1",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"svelte": "^3.49.0",
"svelte-check": "^3.5.1",
"svelte-loader": "^3.0.0",
"typescript": "^5.2.2"
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"typescript": "^5.2.2",
"vite": "^5.0.2",
"vitest": "^0.34.6"
}
}

8

src/datepicker.d.ts

@@ -1,2 +0,2 @@

import type { SvelteComponentTyped } from 'svelte';
import type { SvelteComponent } from 'svelte';

@@ -8,3 +8,3 @@ export interface ComponentProps {

*/
startDate: Date | null;
startDate: any;

@@ -15,3 +15,3 @@ /**

*/
endDate: Date | null;
endDate: any;

@@ -136,3 +136,3 @@ /**

export default class Component extends SvelteComponentTyped<
export default class Component extends SvelteComponent<
ComponentProps,

@@ -139,0 +139,0 @@ Record<string, any>,

@@ -11,5 +11,2 @@ import { render } from '@testing-library/svelte';

endDateTime: '00:00',
today,
defaultYear: today.getFullYear(),
defaultMonth: today.getMonth(),
startOfWeek: 0,

@@ -22,3 +19,3 @@ isMultipane: false,

disabledDates: [],
onDayClick: () => { },
onDayClick: () => {},
showYearControls: true,

@@ -51,4 +48,3 @@ showPresets: false,

beforeEach(() => {
TestHarness = (props = {}) =>
render(DatePicker, props);
TestHarness = (props = {}) => render(DatePicker, props);
});

@@ -55,0 +51,0 @@

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