Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@ng-apimock/docker
Advanced tools
You can start the docker container manually
$ docker run --name my-mock-server -d ngapimock/standalone:latest -p 3000:3000 -v ./mocks:/opt/ngapimock/mocks -v ./extension.js:/opt/ngapimock/extension.js
or using docker-compose.yaml
version: '3.3'
services:
ngapimock-standalone:
image: ngapimock/standalone:latest
restart: always
ports:
- '3000:3000'
expose:
- '3000'
volumes:
- ./mocks:/opt/ngapimock/mocks
- ./extension.js:/opt/ngapimock/extension.js
3000
The mocks are read from your volume mount to /opt/ngapimock/mocks
The extension.js file is read from your volume mount to /opt/ngapimock/extension.js
This is an optional feature that can be used for instance for proxing your requests.
module.exports = {
extend: extend
}
function extend(app) {
console.log("extending the server");
const { createProxyMiddleware } = require('http-proxy-middleware');
app.use('/some/path', createProxyMiddleware({ target: 'https://some.api',changeOrigin: true,timeout: 5000}));
}
Documentation about ng-apimock can be found at https://github.com/ng-apimock/core
The dev-interface can be accessed under:
http://localhost:3000/dev-interface
FAQs
Standalone setup for @ng-apimock/core
The npm package @ng-apimock/docker receives a total of 10 weekly downloads. As such, @ng-apimock/docker popularity was classified as not popular.
We found that @ng-apimock/docker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.