Socket
Socket
Sign inDemoInstall

@microsoft/kiota-serialization-text

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/kiota-serialization-text - npm Package Compare versions

Comparing version 1.0.0-preview.1 to 1.0.0-preview.2

dist/cjs/src/index.d.ts

43

package.json
{
"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`.
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