Socket
Socket
Sign inDemoInstall

air-range-slider

Package Overview
Dependencies
4
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

src/style.scss.d.ts

5

package.json
{
"name": "air-range-slider",
"version": "1.0.0",
"version": "1.0.1",
"description": "jQuery range slider",

@@ -9,3 +9,2 @@ "main": "./dist/main.js",

"test": "jest",
"publish": "git checkout master && git merge development && npm run build && git add . && git commit -am 'Deploy' && git push origin && git checkout @{-1}",
"start": "webpack --mode=development --env mode=development serve",

@@ -58,2 +57,3 @@ "build": "webpack --mode=production",

"gh-pages": "^3.1.0",
"html-webpack-plugin": "^5.3.1",
"jest": "^26.6.3",

@@ -71,2 +71,3 @@ "jsdom": "^16.4.0",

"typescript": "^4.1.2",
"typescript-plugin-css-modules": "^3.2.0",
"webpack": "^5.6.0",

@@ -73,0 +74,0 @@ "webpack-cli": "^4.2.0",

@@ -9,7 +9,15 @@ import JQuery from 'jquery';

// eslint-disable-next-line no-param-reassign
console.log('JQuery $ : ', $);
console.log('$.fn1 : ', $.fn);
$.fn.slider = function makeCreateSlider(props?: Props): JQuery {
console.log('makeCreateSlider this : ', this);
return createSlider(this, props);
};
console.log('$.fn2 : ', $.fn);
})(JQuery);
console.log('JQuery : ', JQuery);
console.log('createSlider : ', createSlider);
export default Slider;

@@ -71,5 +71,6 @@ {

"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"plugins": [{ "name": "typescript-plugin-css-modules" }]
},
"exclude": ["node_modules", "dist", "./src/**/*.test.ts", "./*.js", "*.scss"]
"exclude": ["node_modules", "dist", "./src/**/*.test.ts", "./*.js"]
}

52

webpack.config.js

@@ -10,11 +10,19 @@ "use strict";

const isProd = mode === "production";
const isDev = mode === "development";
const isProduction = mode === 'production';
const isDevelopment = mode === 'development';
const getStyleLoaders = () => {
return [
isProd ? MiniCssExtractPlugin.loader : "style-loader",
isProduction
? {
loader: MiniCssExtractPlugin.loader,
options: {
publicPath: `${path.resolve(__dirname, "dist")}/`,
},
}
: 'style-loader',
'css-modules-typescript-loader',
{
loader: "css-loader",
options: { sourceMap: isDev },
loader: 'css-loader',
options: { sourceMap: isDevelopment },
},

@@ -29,10 +37,7 @@ ];

];
if (isProd) {
if (isProduction) {
plugins.push(
new MiniCssExtractPlugin({
filename: isDev ? "[name].css" : "[name].[hash].css",
chunkFilename: isDev ? "[id].css" : "[id].[hash].css",
insertAt: {
after: "title",
},
filename: isDevelopment ? "[name].css" : "[name].[hash].css",
chunkFilename: isDevelopment ? "[id].css" : "[id].[hash].css",
})

@@ -45,5 +50,8 @@ );

return {
entry: "./src/index.ts",
mode: isProd ? "production" : isDev && "development",
devtool: isDev && "source-map",
entry: './src/index.ts',
mode: isProduction ? 'production' : isDevelopment && 'development',
optimization: {
minimize: false,
},
devtool: isDevelopment && 'source-map',

@@ -54,3 +62,3 @@ module: {

test: /\.ts?$/,
use: "ts-loader",
use: 'ts-loader',
exclude: /node_modules/,

@@ -65,3 +73,7 @@ },

test: /\.(s[ca]ss)$/,
use: [...getStyleLoaders(), "resolve-url-loader", "sass-loader"],
use: [
...getStyleLoaders(),
'resolve-url-loader',
'sass-loader',
],
},

@@ -73,4 +85,4 @@ ],

output: {
path: path.resolve(__dirname, "dist"),
chunkFilename: "[id].[chunkhash].js",
path: path.resolve(__dirname, 'dist'),
chunkFilename: '[id].[hash].js',
},

@@ -85,6 +97,6 @@

resolve: {
extensions: [".ts", ".js", ".css", ".scss"],
modules: ["src", "node_modules"],
extensions: ['.ts', '.js', '.css', '.scss'],
modules: ['src', 'node_modules'],
},
};
};

Sorry, the diff of this file is too big to display

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