properties-file
Advanced tools
Comparing version 3.4.1 to 3.5.0
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __1=require(".."),webpackLoader=function(e){return"module.exports = ".concat(JSON.stringify((0,__1.getProperties)(e)),";")};exports.default=webpackLoader; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __1=require(".."),webpackLoader=function(e){return"exports.properties = ".concat(JSON.stringify((0,__1.getProperties)(e)),";")};exports.default=webpackLoader; |
declare module '*.properties' { | ||
/** A key/value object representing the content of a `.properties` file. */ | ||
const keyValuePairObject: { | ||
const properties: { | ||
/** The value of a `.properties` file key. */ | ||
readonly [key: string]: string | ||
[key: string]: string | ||
} | ||
export = keyValuePairObject | ||
export { properties } | ||
} |
@@ -1,1 +0,1 @@ | ||
import{getProperties}from"../index.js";var webpackLoader=function(e){return"module.exports = ".concat(JSON.stringify(getProperties(e)),";")};export default webpackLoader; | ||
import{getProperties}from"../index.js";var webpackLoader=function(e){return"exports.properties = ".concat(JSON.stringify(getProperties(e)),";")};export default webpackLoader; |
declare module '*.properties' { | ||
/** A key/value object representing the content of a `.properties` file. */ | ||
const keyValuePairObject: { | ||
const properties: { | ||
/** The value of a `.properties` file key. */ | ||
readonly [key: string]: string | ||
[key: string]: string | ||
} | ||
export = keyValuePairObject | ||
export { properties } | ||
} |
{ | ||
"name": "properties-file", | ||
"version": "3.4.1", | ||
"version": "3.5.0", | ||
"description": ".properties file parser, editor, formatter and Webpack loader.", | ||
@@ -89,2 +89,3 @@ "keywords": [ | ||
"ci": "npm run build", | ||
"depcheck": "depcheck", | ||
"lint-fix": "eslint --fix .", | ||
@@ -96,8 +97,10 @@ "prettier": "prettier --write .", | ||
"devDependencies": { | ||
"@eslint/js": "^8.57.0", | ||
"@release-it/conventional-changelog": "8.0.1", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "^20.11.24", | ||
"@typescript-eslint/eslint-plugin": "7.1.0", | ||
"@typescript-eslint/parser": "7.1.0", | ||
"@typescript-eslint/eslint-plugin": "7.1.1", | ||
"@typescript-eslint/parser": "7.1.1", | ||
"check-node-version": "^4.2.1", | ||
"depcheck": "^1.4.7", | ||
"dotenv-cli": "7.3.0", | ||
@@ -116,3 +119,2 @@ "eslint": "8.57.0", | ||
"eslint-plugin-unicorn": "51.0.1", | ||
"glob": "^10.3.10", | ||
"globals": "^14.0.0", | ||
@@ -127,3 +129,2 @@ "jest": "29.7.0", | ||
"ts-jest": "29.1.2", | ||
"ts-node": "10.9.2", | ||
"typescript": "5.3.3" | ||
@@ -130,0 +131,0 @@ }, |
@@ -215,7 +215,10 @@ # properties-file | ||
```js | ||
// properties-file.d.ts | ||
```ts | ||
declare module '*.properties' { | ||
const properties: { readonly [key: string]: string }; | ||
export default properties; | ||
/** A key/value object representing the content of a `.properties` file. */ | ||
const properties: { | ||
/** The value of a `.properties` file key. */ | ||
[key: string]: string | ||
} | ||
export { properties } | ||
} | ||
@@ -227,3 +230,3 @@ ``` | ||
```ts | ||
import helloWorld from './hello-world.properties' | ||
import { properties as helloWorld } from './hello-world.properties' | ||
@@ -230,0 +233,0 @@ console.dir(helloWorld) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74509
285