@microsoft/kiota-serialization-text
Advanced tools
Comparing version 1.0.0-preview.1 to 1.0.0-preview.2
{ | ||
"name": "@microsoft/kiota-serialization-text", | ||
"version": "1.0.0-preview.1", | ||
"version": "1.0.0-preview.2", | ||
"description": "Implementation of Kiota Serialization interfaces for text", | ||
"files": ["src","dist"], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "dist/cjs/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"main": "dist/cjs/src/index.js", | ||
"module": "dist/es/src/index.js", | ||
"types": "dist/cjs/src/index.d.ts", | ||
"scripts": { | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.es.json", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "npm run build:cjs && npm run build:es", | ||
"build:cjs": "tsc -b tsconfig.cjs.json", | ||
"build:es": "tsc -b tsconfig.es.json", | ||
"lint": "eslint . --ext .ts", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"clean": "rm -r ./dist" | ||
"clean": "rm -r ./dist ./node_modules", | ||
"karma": "npm run rollup && karma start --single-run --browsers ChromeHeadless karma.conf.js", | ||
"rollup": "rollup -c", | ||
"test": "npm run test:cjs && npm run test:es && npm run rollup && npm run karma", | ||
"test:cjs": "npm run build:cjs && mocha 'dist/cjs/test/common/**/*.js'", | ||
"test:es": " npm run build:es && mocha 'dist/es/test/common/**/*.js' --require esm" | ||
}, | ||
@@ -35,17 +42,7 @@ "repository": { | ||
"homepage": "https://github.com/microsoft/kiota-typescript#readme", | ||
"devDependencies": { | ||
"@types/node": "^17.0.22", | ||
"@typescript-eslint/eslint-plugin": "^5.16.0", | ||
"@typescript-eslint/parser": "^5.16.0", | ||
"eslint": "^8.11.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"prettier": "^2.6.0", | ||
"typescript": "^4.6.2" | ||
}, | ||
"dependencies": { | ||
"@microsoft/kiota-abstractions": "^1.0.0-preview.1", | ||
"@microsoft/kiota-abstractions": "^1.0.0-preview.3", | ||
"tslib": "^2.3.1" | ||
} | ||
}, | ||
"gitHead": "1d8fc8531793c508c897700572ceaa6e0561cf25" | ||
} |
@@ -1,19 +0,12 @@ | ||
# To-do | ||
[![npm version badge](https://img.shields.io/npm/v/@microsoft/kiota-serialization-text?color=blue)](https://www.npmjs.com/package/@microsoft/kiota-serialization-text) | ||
![TypeScript](https://github.com/microsoft/kiota/actions/workflows/serialization-typescript-text.yml/badge.svg) | ||
- [ ] browserlist configuration for compat | ||
- [ ] eslint configuration for linting | ||
- [ ] unit tests (chai + mocha + chai as promised + some coverage reporter) | ||
- [ ] doc comments | ||
The Text Serialization Library is an implementation to handle text/plain payloads. | ||
## Using the Serialization text implementations | ||
A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to a Text serialization package to handle text/plain payloads from an API endpoint. | ||
1. Add a `.npmrc` file with the following content | ||
Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README.md). | ||
```Config | ||
@microsoft:registry=https://npm.pkg.github.com/ | ||
``` | ||
## Using the Serialization text implementations | ||
1. `npm login --scope=@microsoft --registry=https://npm.pkg.github.com` (use a token with package:read, repo and SSO enabled for the Microsoft organization as the password) | ||
1. `npm i @microsoft/kiota-serialization-text -S`. | ||
1. `npm i @microsoft/kiota-serialization-text`. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
481501
0
53
11637
1
13
2