Skip to content

Instantly share code, notes, and snippets.

View hazemfarahat's full-sized avatar

Hazem Farahat hazemfarahat

  • Karlsruhe, Germany
View GitHub Profile
import { from } from 'rxjs';
// only output distinct values, based on the last emitted value
const source$ = from([1, 1, 2, 2, 3, 3]);
// expected output [1, 2, 3]
const axios = require('axios').default;
axios.interceptors.request.use(x => {
const headers = {
...x.headers.common,
...x.headers[x.method],
...x.headers
};
const axios = require('axios').default;
axios.interceptors.request.use(x => {
// replace console with our logger of choice
console.log(x);
return x;
})
axios.interceptors.response.use(x => {
console.log(x)
REMOVE MediaContainer[batchmode=true] ; itemtype(code)[unique=true]
; MediaContainer
UPDATE Customer[batchmode=true] ; itemtype(code)[unique=true] ; attributeToClear
; B2BCustomer ;
; Customer ;